Ticket #11373: 11373.patch

File 11373.patch, 1.0 KB (added by jdemeyer, 2 years ago)
  • setup.py

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1306231886 -10800
    # Node ID 611e83c50dc9bb56a04a52ae752b118a36fd0213
    # Parent  5655998908b8797a2108b8e8cac38d705faa3804
    Allow global extra_link_args just like extra_compile_args
    
    diff -r 5655998908b8 -r 611e83c50dc9 setup.py
    a b  
    114114    include_dirs = include_dirs + debian_include_dirs 
    115115 
    116116extra_compile_args = [ ] 
     117extra_link_args = [ ] 
    117118 
    118119# comment these four lines out to turn on warnings from gcc 
    119120import distutils.sysconfig 
     
    203204 
    204205for m in ext_modules: 
    205206    m.libraries = ['csage'] + m.libraries + ['stdc++', 'ntl'] 
    206     m.extra_compile_args += extra_compile_args # + ["-DCYTHON_REFNANNY"] 
     207    m.extra_compile_args += extra_compile_args 
     208    m.extra_link_args += extra_link_args 
    207209    if os.environ.has_key('SAGE_DEBIAN'): 
    208210        m.library_dirs += ['/usr/lib','/usr/lib/eclib','/usr/lib/singular','/usr/lib/R/lib','%s/lib' % SAGE_LOCAL] 
    209211    else: