--- SConstruct.orig 2009-08-19 17:38:38.000000000 +0400 +++ SConstruct 2009-08-25 18:18:24.000000000 +0400 @@ -1,8 +1,7 @@ import os -env = Environment() -env['CC'] = 'g++' -env['CCFLAGS'] = '-Wall -Wextra -Wno-unused-parameter -O2 -I/usr/include/OpenEXR -I./lib -I./external/tinyXML' +env = Environment(ENV=os.environ, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems())) +env.Append(CCFLAGS = '-Wall -Wextra -Wno-unused-parameter -I./lib -I./external/tinyXML'.split()) env['LIBS'] = ['GLU', 'GL', 'protobuf', 'IL', 'ILUT', 'audiere'] env.ParseConfig("pkg-config IlmBase --cflags --libs") env.ParseConfig("pkg-config libglfw --cflags --libs")