# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1264914144 0 # Node ID 47eca3c3d59d296cbec0aba816fa6cebfda5d168 # Parent 219b8036708cc3af97062152c0178b592305c299 Fixed a small bug where CXXFLAGS was not being honored. diff -r 219b8036708c -r 47eca3c3d59d SConstruct --- a/SConstruct Sat Jan 30 16:11:38 2010 +0000 +++ b/SConstruct Sun Jan 31 05:02:24 2010 +0000 @@ -36,6 +36,7 @@ 'Destination directory (prepended to prefix)', None, PathVariable.PathAccept )) +#vars.Add('CXXFLAGS', "") #propagate the invoking users complete external environment env = Environment(variables = vars, @@ -247,7 +248,7 @@ if debug: if haveusercxxflags: - env.AppendUnique(usercxxflags) + env.AppendUnique(CXXFLAGS=usercxxflags) else: env.AppendUnique(CXXFLAGS=['-O0', '-Wall', '-Wno-unused']) @@ -257,7 +258,7 @@ print "Building DEBUG binaries..." else: if haveusercxxflags: - env.AppendUnique(usercxxflags) + env.AppendUnique(CXXFLAGS=usercxxflags) else: env.AppendUnique(CXXFLAGS=['-O2', '-Wall', '-Wno-unused'])