Some weird bug with non gnu-make
Marc Espie
espie@quatramaran.ens.fr
Wed Jul 11 06:15:00 GMT 2001
In article < 20010711145532.A15168@schutzenberger.liafa.jussieu.fr > you write:
>I figured out what confused libtool.
>Turns out I'm configuring gcc with CFLAGS="-O2 -g "
>So, this ends up as
>CFLAGS=-O2 -g
>in the Makefile (note the space).
>However, bsd-make does strip the space at the end of the line (it probably
>shouldn't, but that's the way it is...) and this is enough to confuse
>libtool utterly...
After checking more carefully, this might be a bug, though a very well-spread
one... Solaris make does behave in the exact same way.
Of course, single unix mandates stripping spaces in make only around the equal
sign of assignments, but this is very late in the game, and stripping spaces
everywhere makes sense, when you consider variables as lists of options
separated by spaces.
More information about the Gcc-bugs
mailing list