This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Some weird bug with non gnu-make
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Some weird bug with non gnu-make
- From: Marc Espie <espie at quatramaran dot ens dot fr>
- Date: Wed, 11 Jul 2001 15:15:46 +0200
- Organization: Ecole Normale Superieure (quatramaran)
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.