# 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
|
|
| 114 | 114 | include_dirs = include_dirs + debian_include_dirs |
| 115 | 115 | |
| 116 | 116 | extra_compile_args = [ ] |
| | 117 | extra_link_args = [ ] |
| 117 | 118 | |
| 118 | 119 | # comment these four lines out to turn on warnings from gcc |
| 119 | 120 | import distutils.sysconfig |
| … |
… |
|
| 203 | 204 | |
| 204 | 205 | for m in ext_modules: |
| 205 | 206 | 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 |
| 207 | 209 | if os.environ.has_key('SAGE_DEBIAN'): |
| 208 | 210 | m.library_dirs += ['/usr/lib','/usr/lib/eclib','/usr/lib/singular','/usr/lib/R/lib','%s/lib' % SAGE_LOCAL] |
| 209 | 211 | else: |