From f74a4ff17aa2852f094de85de2d062accf148251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Lehmann?= Date: Tue, 21 Oct 2014 11:43:45 +0200 Subject: [PATCH] use the CXXFLAGS and LINKFLAGS environment variable in scons this allows homebrew to use its own flags during the build --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 23225cb..1c55bcd 100644 --- a/SConstruct +++ b/SConstruct @@ -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."