use the CXXFLAGS and LINKFLAGS environment variable in scons
this allows homebrew to use its own flags during the build
diff --git a/SConstruct b/SConstruct
index 23225cb..1c55bcd 100644
--- a/SConstruct
+++ b/SConstruct
@@ -119,7 +119,7 @@
env.Append( CPPDEFINES=[ "WIN32", "NDEBUG", "_MT" ] )
elif platform.startswith('linux-gcc'):
env.Tool( 'default' )
- env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
+ env.Append( LIBS = ['pthread'], CCFLAGS = os.environ.get("CXXFLAGS", "-Wall"), LINKFLAGS=os.environ.get("LDFLAGS", "") )
env['SHARED_LIB_ENABLED'] = True
else:
print "UNSUPPORTED PLATFORM."