Upgrade WAF; fix Darwin (OSX) build problems.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sun, 11 Jan 2009 17:51:20 +0000
changeset 4076 1c67ab5f959a
parent 4075 bc8a646b1338
child 4077 d2e461e575f4
Upgrade WAF; fix Darwin (OSX) build problems.
bindings/python/wscript
waf
wscript
--- a/bindings/python/wscript	Sat Jan 10 19:05:32 2009 +0000
+++ b/bindings/python/wscript	Sun Jan 11 17:51:20 2009 +0000
@@ -133,14 +133,6 @@
         conf.report_optional_feature("python", "Python Bindings", False, str(ex))
         return
 
-    # Fix a bug with WAF and g++ 4.3.2 (it does not include "(GCC") in
-    # the output of g++ --version, so the WAF python detection fails
-    # to recognize it is gcc)
-    gcc_version = os.popen("%s --version" % conf.env['CXX']).readline()
-    if '(GCC)' in gcc_version or 'g++' in gcc_version:
-        conf.env.append_value('CXXFLAGS_PYEMBED','-fno-strict-aliasing')
-        conf.env.append_value('CXXFLAGS_PYEXT','-fno-strict-aliasing')
-
     ## Check for pybindgen
 
     no_net = False
@@ -508,7 +500,7 @@
         pymod.target = 'ns3/_ns3'
         pymod.name = 'ns3module'
         pymod.uselib_local = "ns3"
-        pymod.env.append_value('CXXDEFINES', ['NS_DEPRECATED=""', 'NS3_DEPRECATED_H'])
+        pymod.env.append_value('CXXDEFINES', ['NS_DEPRECATED=', 'NS3_DEPRECATED_H'])
 
         # copy the __init__.py file to the build dir. waf can't handle
         # this, it's against waf's principles to have build dir files
Binary file waf has changed
--- a/wscript	Sat Jan 10 19:05:32 2009 +0000
+++ b/wscript	Sun Jan 11 17:51:20 2009 +0000
@@ -12,7 +12,10 @@
 import Options
 import Logs
 import TaskGen
+
 import ccroot
+ccroot.USE_TOP_LEVEL = True
+
 import Task
 import Utils
 import Build