summaryrefslogtreecommitdiff
blob: ca8e0c283680b718c91d34b1f145a78e30cf39b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- SConstruct
+++ SConstruct
@@ -46,7 +46,11 @@
 # print "Install directory = $prefix"
 # print "Directory where symlinked binary will go = $bin"
 
-flags = [ '-g3', '-Wall', '-fno-rtti', '-Woverloaded-virtual', '-O2', '-DINSTALL_DIR=\\\"$prefix\\\"' ];
+env.Replace(CXX = os.environ['CXX'])
+if os.environ.get('CXXFLAGS'):
+	env.Replace(CPPFLAGS = os.environ['CXXFLAGS'])
+
+flags = [ '-Wall', '-fno-rtti', '-Woverloaded-virtual' ];
 env.Append( CCFLAGS = flags, CPPPATH = [ "build" ] )
 
 # SConscript( 'src/SConscript', build_dir='build', exports = 'env' );