[Scons-users] Extending a parameter list

Barnaby Jones simba at xn--schrdingerskatze-pwb.de
Tue Oct 21 08:09:59 EDT 2014


I'm using Python 2.7.8 with scons 2.3.5 linux/arch

Is it possible to extend a compiler parameter list? Until recently i 
thought this would work:

cc_flagsShared = Split("""-DHAVE_CONFIG_H
                     -std=c11
                     -Werror""")

and append or extend it with

cc_flagsStatic = cc_flagsShared.append('-DMAKE_STATIC')
cc_flagsStatic = cc_flagsShared.extend('-DMAKE_STATIC')


but in this case cc_flagsStatic is always empty:

e.g
gcc -o src/common/filter.o src/common/filter.c




More information about the Scons-users mailing list