Ticket #12457: 12457_darwin_link.patch

File 12457_darwin_link.patch, 732 bytes (added by Jeroen Demeyer, 11 years ago)
  • setup.py

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1328610514 28800
    # Node ID a35d43c67e44d26178d61f6b32ce92475531e178
    # Parent  1a806690b32a78a33f92c31297f144f405cb5992
    On Darwin, change linker flags to Apple's default
    
    diff --git a/setup.py b/setup.py
    a b  
    9191if DEVEL:
    9292    extra_compile_args.append('-ggdb')
    9393
     94# The default GCC on Darwin doesn't link in -lgcc_s, nor -lgcc_eh.
     95# We force the same here, otherwise we get crashes in pynac.
     96# See Trac #12457.
     97if sys.platform == 'darwin':
     98    extra_link_args.extend(['-nostdlib', '-lgcc', '-lSystem'])
     99
    94100# Generate interpreters
    95101
    96102sage.ext.gen_interpreters.rebuild(SAGE_DEVEL + '/sage/sage/ext/interpreters')