use the CXXFLAGS and LINKFLAGS environment variable in scons

this allows homebrew to use its own flags during the build
This commit is contained in:
Gaëtan Lehmann 2014-10-21 11:43:45 +02:00
parent b7eccbb110
commit f74a4ff17a

View File

@ -119,7 +119,7 @@ elif platform == 'mingw':
env.Append( CPPDEFINES=[ "WIN32", "NDEBUG", "_MT" ] ) env.Append( CPPDEFINES=[ "WIN32", "NDEBUG", "_MT" ] )
elif platform.startswith('linux-gcc'): elif platform.startswith('linux-gcc'):
env.Tool( 'default' ) 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 env['SHARED_LIB_ENABLED'] = True
else: else:
print "UNSUPPORTED PLATFORM." print "UNSUPPORTED PLATFORM."