mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-05 00:25:27 +02:00
Merge pull request #55 from glehmann/build-env
use the CXXFLAGS and LINKFLAGS environment variable in scons
This commit is contained in:
commit
7bd75b0fb4
@ -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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user