Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
What steps will reproduce the problem?
1. scons CFLAGS=-g,-O0
2. scons
=> this builds scons correctly with the added flags.
3. cat .saved_config
CC = ['gcc']
CFLAGS = ['-g -O0']
LINKFLAGS = ['']
4. scons -c
5. scons
gcc -o context.o -c "-g -O0" -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -O2 -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I. -I/usr/include/apr-1 -I/usr/include context.c
cc1: error: unrecognised debug output level " -O0"
scons: *** [context.o] Error 1
scons: building terminated because of errors.
So saving the CFLAGS flags works but then using them in a next invocation of scons adds double quotes.
Possibly the same issue with the other LINKFLAGS and LIBS.