This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Some weird bug with non gnu-make


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]