[Vm-dev] ac_cv_cflags_warn_all in unix configure script
stes
stes at telenet.be
Fri Mar 27 09:19:32 UTC 2020
I'm giving it a try to compile OpenSmalltalk with the Sun C compiler on
Solaris.
In the OpenSmalltalk sources, under platforms/unix/config/configure
in the configure script there is some code to select "maximum warnings" for
the C compiler
when configuring with the Sun C compiler that part of the configure script
does not work.
It selects "-warn all" when automatic configuration is used, but the cc
compiler later on complains because this option does not exist, it is in
fact interpreted as a way to pass '-r' and '-n' via '-wa' to the linker.
As a solution or workaround if you like, what works is : ./configure
*ac_cv_cflags_warn_all="-pedantic"*
So the following configure line works
$ ../../../platforms/unix/config/configure --without-npsqueak
--with-vmversion=5.0 --with-src=spursrc TARGET_ARCH=-m32
*ac_cv_cflags_warn_all="-pedantic"* CFLAGS=-g -O2 -DNDEBUG -DDEBUGVM=0
-DCOGMTVM=0
and the compilation starts.
--
Sent from: http://forum.world.st/Squeak-VM-f104410.html
More information about the Vm-dev
mailing list