wuzhipeng2014 / freenos

Automatically exported from code.google.com/p/freenos
GNU General Public License v3.0
0 stars 0 forks source link

Overriding CCFLAGS triggeres invalid argument error #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When overriding CCFLAGS on the command-line, the CC command interprets the
CCFLAGS
values as one argument, instead of a list:

fox@nemesis ~/svn/svn.hunix.nl-freenos/trunk $ scons CCFLAGS="-O0 -g3
-nostdinc -Wall -Werror -fno-builtin -Wno-write-strings
-fno-stack-protector -Wall"
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
CXX lib/liballoc/Allocator.o
CXX lib/liballoc/BubbleAllocator.o
CXX lib/liballoc/ListAllocator.o

... ...

AR lib/libregexp/libregexp.a
RANLIB lib/libregexp/libregexp.a
CC lib/libteken/teken.o
cc1: error: invalid option argument '-O0 -g3 -nostdinc -Wall -Werror
-fno-builtin -Wno-write-strings -fno-stack-protector -Wall'
scons: *** [lib/libteken/teken.o] Error 1
scons: building terminated because of errors.

Note that this problem does not occur for CXX.

Original issue reported on code.google.com by coenbijlsma on 7 Aug 2009 at 10:39

GoogleCodeExporter commented 9 years ago

Original comment by coenbijlsma on 7 Aug 2009 at 11:04