Skip to content

Commit f74a4ff

Browse files
committed
use the CXXFLAGS and LINKFLAGS environment variable in scons
this allows homebrew to use its own flags during the build
1 parent b7eccbb commit f74a4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ elif platform == 'mingw':
119119
env.Append( CPPDEFINES=[ "WIN32", "NDEBUG", "_MT" ] )
120120
elif platform.startswith('linux-gcc'):
121121
env.Tool( 'default' )
122-
env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
122+
env.Append( LIBS = ['pthread'], CCFLAGS = os.environ.get("CXXFLAGS", "-Wall"), LINKFLAGS=os.environ.get("LDFLAGS", "") )
123123
env['SHARED_LIB_ENABLED'] = True
124124
else:
125125
print "UNSUPPORTED PLATFORM."

0 commit comments

Comments
 (0)