--- a/src/core/wscript Mon Apr 01 21:56:36 2013 +0200
+++ b/src/core/wscript Mon Apr 01 22:33:46 2013 +0200
@@ -1,8 +1,7 @@
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
import sys
-import Options
-
+from waflib import Options
import wutils
def options(opt):
@@ -49,7 +48,7 @@
conf.check_nonfatal(header_name='signal.h', define_name='HAVE_SIGNAL_H')
# Check for POSIX threads
- test_env = conf.env.copy()
+ test_env = conf.env.derive()
if Options.platform != 'darwin' and Options.platform != 'cygwin':
test_env.append_value('LINKFLAGS', '-pthread')
test_env.append_value('CXXFLAGS', '-pthread')
@@ -173,7 +172,7 @@
'test/watchdog-test-suite.cc',
]
- headers = bld.new_task_gen(features=['ns3header'])
+ headers = bld(features='ns3header')
headers.module = 'core'
headers.source = [
'model/nstime.h',
@@ -309,7 +308,7 @@
core_test.source.extend(['test/rng-test-suite.cc'])
if (bld.env['ENABLE_EXAMPLES']):
- bld.add_subdirs('examples')
+ bld.recurse('examples')
pymod = bld.ns3_python_bindings()
if pymod is not None: