Remove -mcmodel=large option in darwin now that it's not useful
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sun, 25 Sep 2011 15:53:14 +0100
changeset 7565 8f7dbc2acba9
parent 7564 98a60a822ae5
child 7566 5351a9cdb84b
Remove -mcmodel=large option in darwin now that it's not useful
src/wscript
--- a/src/wscript	Sun Sep 25 15:43:30 2011 +0100
+++ b/src/wscript	Sun Sep 25 15:53:14 2011 +0100
@@ -94,15 +94,6 @@
             # up in the same directory.
             module_library_name = module.env.cshlib_PATTERN % (os.path.basename(module.target),)
             linkflags = '-Wl,--soname=' + module_library_name
-    elif module.env['CXX_NAME'] in ['gcc', 'icc'] and \
-            os.uname()[4] == 'x86_64' and \
-            sys.platform != 'darwin' and \
-            module.env['ENABLE_PYTHON_BINDINGS']:
-        # enable that flag for static builds only on x86-64 platforms
-        # when gcc is present and only when we want python bindings
-        # (it's more efficient to not use this option if we can avoid it)
-        cxxflags = ['-mcmodel=large']
-        ccflags = ['-mcmodel=large']
     cxxdefines = ["NS3_MODULE_COMPILATION"]
     ccdefines = ["NS3_MODULE_COMPILATION"]