summaryrefslogtreecommitdiff
blob: eeee2a67f7525c66a9ff58770e6dbefa47de72a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- SConstruct_BACKUP	2009-12-31 22:53:23.000000000 +0100
+++ SConstruct	2009-12-31 22:57:48.000000000 +0100
@@ -102,9 +102,10 @@
 env_lib.Append (CPPPATH=['.','libdrqueue'])
 env_lib.Append (CPPDEFINES = Split ('-DCOMM_REPORT -D_GNU_SOURCE ' \
                 + '-D_NO_COMPUTER_POOL_SEMAPHORES -D_NO_COMPUTER_SEMAPHORES'),
-                CPPFLAGS = Split ('-g -O0'),
+                CFLAGS = Split(os.environ.get('CFLAGS', '')),
                 CXXFLAGS = ['-D__CPLUSPLUS',Split(env_lib.subst('$CCFLAGS')),
-                            Split(env_lib.subst('$CPPDEFINES'))])
+                            Split(env_lib.subst('$CPPDEFINES')),
+                            Split(os.environ.get('CXXFLAGS', ''))])
 
 print "Platform is: ",sys.platform
 if sys.platform == "linux2":