mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-18 11:35:34 +02:00
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:
parent
b7eccbb110
commit
f74a4ff17a
@ -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