Skip to content

Commit 7bd75b0

Browse files
committed
Merge pull request open-source-parsers#55 from glehmann/build-env
use the CXXFLAGS and LINKFLAGS environment variable in scons
2 parents b7eccbb + f74a4ff commit 7bd75b0

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)