--- SConstruct~ Sun Dec 11 12:07:09 2005 +++ SConstruct Thu Dec 29 00:19:48 2005 @@ -38,13 +38,17 @@ ###### BUILD ENVIRONMENT +opts.Add('CFLAGS','compiler flags', "-O3 -Wall") +opts.Add('LDFLAGS','linker flags', "") + env=Environment(options=opts, ENV=os.environ) debug=int(env['DEBUG']) if (debug>0): env.Append(CCFLAGS=['-g3','-Wall']) -else: - env.Append(CCFLAGS=['-O3','-Wall']) +env.Append(CCFLAGS=Split(env["CFLAGS"])) + +env.Append(LINKFLAGS=Split(env["LDFLAGS"])) env.Replace(CXXFILESUFFIX=".cpp")