Bug 1252 - OSX --enable-static unimplemented: code model large not supported in PIC mode
authorJohn Abraham <john.abraham@gatech.edu>
Fri, 26 Aug 2011 17:06:35 -0400
changeset 7467 936cb356fb09
parent 7466 d23a92c90eee
child 7468 7b8dfd1b02f6
Bug 1252 - OSX --enable-static unimplemented: code model large not supported in PIC mode
src/wscript
--- a/src/wscript	Fri Aug 26 10:01:33 2011 -0700
+++ b/src/wscript	Fri Aug 26 17:06:35 2011 -0400
@@ -200,6 +200,7 @@
                 linkflags = '-Wl,--soname=%s' % 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