1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-SConstruct,v 1.3 2013/10/06 16:45:04 wiz Exp $
Don't append -O2 compiler flag.
--- SConstruct.orig 2013-10-04 15:11:04.000000000 +0000
+++ SConstruct
@@ -146,7 +146,7 @@ if sys.platform == 'win32':
True),
)
-env = Environment(variables=opts,
+env = Environment(variables=opts, ENV=os.environ,
tools=('default', 'textfile',),
CPPPATH=['.', ],
)
@@ -240,7 +240,6 @@ if sys.platform != 'win32':
env.Append(CCFLAGS='-g')
env.Append(CPPDEFINES=['DEBUG', '_DEBUG'])
else:
- env.Append(CCFLAGS='-O2')
env.Append(CPPDEFINES='NDEBUG')
### works for Mac OS. probably needs to change
|