blob: f894c8ce9c1043263c0a0517aa5096f67de8ea39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- SConstruct
+++ SConstruct
@@ -46,7 +46,12 @@
# print "Install directory = $prefix"
# print "Directory where symlinked binary will go = $bin"
-flags = [ '-g3', '-Wall', '-fno-rtti', '-Woverloaded-virtual', '-O2', '-DINSTALL_DIR=\\\"$prefix\\\"' ];
+SConsignFile()
+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' );
|