Skip to content

Commit

Permalink
use the CXXFLAGS and LINKFLAGS environment variable in scons
Browse files Browse the repository at this point in the history
this allows homebrew to use its own flags during the build
  • Loading branch information
glehmann committed Oct 21, 2014
1 parent b7eccbb commit f74a4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ elif platform == 'mingw':
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."
Expand Down

0 comments on commit f74a4ff

Please sign in to comment.