Commit d1685ac7e91c5269cf01f6ab57c2c4705a14e6bc

Romain Muller 2011-05-18T17:20:08

Have wscript use the environment-provided CFLAGS as per WAF's documented behavior.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/wscript b/wscript
index f4f8da9..fd877e4 100644
--- a/wscript
+++ b/wscript
@@ -50,7 +50,7 @@ def configure(conf):
 
     dbg = conf.options.debug
 
-    conf.env.CFLAGS = CFLAGS_UNIX + (CFLAGS_UNIX_DBG if dbg else [])
+    conf.env.CFLAGS += CFLAGS_UNIX + (CFLAGS_UNIX_DBG if dbg else [])
 
     if conf.env.DEST_OS == 'win32':
         conf.env.PLATFORM = 'win32'