--- SConstruct.orig 2012-12-31 16:35:54 UTC +++ SConstruct @@ -39,7 +39,7 @@ opts.Add('python_config', 'python-config tools = ['default', 'textfile'] -env = Environment(ENV=os.environ, options=opts, tools=tools) +env = Environment(ENV=os.environ, options=opts, tools=tools, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems())) print('building for %r (use scons python_binary=xxx to change)' % env['python_binary']) print('using %r (use scons python_config=xxx to change)' % env['python_config']) if sys.platform == "win32": @@ -47,9 +47,9 @@ if sys.platform == "win32": env = Environment(tools=tools + ['mingw'], ENV=os.environ, options=opts) opts.Update(env) -env.Append(CXXFLAGS=' -Wall -Wno-sign-compare -Wno-write-strings') -env.Append(CCFLAGS='-Wall') -env.Append(CFLAGS='-std=c99') +env.Append(CXXFLAGS=['-Wall', '-Wno-sign-compare', '-Wno-write-strings']) +env.Append(CCFLAGS=['-Wall']) +env.Append(CFLAGS=['-std=c99']) # Define strdup() in string.h under glibc >= 2.10 (POSIX.1-2008) env.Append(CFLAGS='-D_POSIX_C_SOURCE=200809L')