[Ns-bugs] [Bug 1252] OSX --enable-static unimplemented: code model large not supported in PIC mode

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Fri Aug 26 09:04:40 PDT 2011


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1252

--- Comment #2 from John Abraham <jabraham3 at mail.gatech.edu> 2011-08-26 12:04:39 EDT ---
Wouldn't this be the case in not just darwin but also others which do not
support mcmodel==large?


(In reply to comment #1)
> 
> The relevant code is in src/wscript:
> 
>         elif module.env['CXX_NAME'] in ['gcc', 'icc'] and \
>                 os.uname()[4] == 'x86_64' 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']
> 
> 
> I suspect that it should be safe to add an extra check for darwin here.

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list