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
Original issue reported on code.google.com by
coenbijlsma
on 7 Aug 2009 at 10:39