2e611fd8e9
- Add LICENSE (GPLv2)
24 lines
889 B
Text
24 lines
889 B
Text
--- SConstruct.orig 2011-04-18 01:57:09.000000000 +0800
|
|
+++ SConstruct 2011-10-19 23:42:24.000000000 +0800
|
|
@@ -20,7 +20,7 @@
|
|
BUILD_FLAGS = {
|
|
'common' : ['-I#', '-D_GNU_SOURCE', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_REENTRANT'],
|
|
'debug' : ['-g', '-ggdb', '-Wall', '-D_DEBUG'],
|
|
- 'release' : ['-O3', '-fomit-frame-pointer', '-DNDEBUG']
|
|
+ 'release' : ['-fomit-frame-pointer', '-DNDEBUG']
|
|
}
|
|
|
|
# ----------------------------------------------------------------------
|
|
@@ -139,6 +139,12 @@
|
|
if os.environ.has_key('CFLAGS'):
|
|
env['CFLAGS'] = os.environ['CFLAGS'].split()
|
|
|
|
+if os.environ.has_key('CPPPATH'):
|
|
+ env['CPPPATH'] = os.environ['CPPPATH'].split()
|
|
+
|
|
+if os.environ.has_key('LIBPATH'):
|
|
+ env['LIBPATH'] = os.environ['LIBPATH'].split()
|
|
+
|
|
env['CPPDEFINES'] = [] # Initialize as a list so Append doesn't concat strings
|
|
|
|
env.SConsignFile('build/sconf/.sconsign')
|