# HG changeset patch
# User Felix Lawrence <felix@physics.usyd.edu.au>
# Date 1263968979 -39600
# Node ID a6b16a3723960e80bc34b84eb13905be11b41308
# Parent 849717d395b858b46df0b7af7909674553223d33
Modify Sage_FCompiler_1 so to support OS X, which does not support the linker option -shared
diff -r 849717d395b8 -r a6b16a372396 SPKG.txt
a
|
b
|
|
59 | 59 | |
60 | 60 | == Changelog == |
61 | 61 | |
| 62 | === numpy-1.3.0.p2 (Felix Lawrence, 20 January 2010)=== |
| 63 | * Modify Sage_FCompiler_1 so to support OS X, which does not support "-shared" |
| 64 | |
62 | 65 | === numpy-1.3.0.p2 (Ondrej Certik, 20 September 2009) === |
63 | 66 | * fix the build system to work in cygwin |
64 | 67 | |
diff -r 849717d395b8 -r a6b16a372396 patches/gnu.py
a
|
b
|
|
345 | 345 | # break |
346 | 346 | |
347 | 347 | |
| 348 | if os.uname()[0]=="Darwin": |
| 349 | link_command=["sage_fortran","-Wall","-undefined", "dynamic_lookup", "-bundle"] |
| 350 | else: |
| 351 | link_command=["sage_fortran","-Wall","-shared"] |
348 | 352 | |
349 | 353 | executables = { |
350 | 354 | 'version_cmd' : ["sage_fortran","--version"], |
351 | 355 | 'compiler_f77' : ["sage_fortran","-Wall","-ffixed-form","-fno-second-underscore"], |
352 | 356 | 'compiler_f90' : ["sage_fortran","-Wall","-fno-second-underscore"], |
353 | 357 | 'compiler_fix' : ["sage_fortran","-Wall","-ffixed-form","-fno-second-underscore"], |
354 | | 'linker_so' : ["sage_fortran","-Wall","-shared"], |
| 358 | 'linker_so' : link_command, |
355 | 359 | 'archiver' : ["ar", "-cr"], |
356 | 360 | 'ranlib' : ["ranlib"], |
357 | 361 | 'linker_exe' : ["sage_fortran","-Wall"] |
diff -r 849717d395b8 -r a6b16a372396 patches/gnu.py.diff
a
|
b
|
|
1 | | --- ../src/numpy/distutils/fcompiler/gnu.py 2009-04-05 01:09:20.000000000 -0700 |
2 | | +++ gnu.py 2009-07-08 21:13:51.000000000 -0700 |
| 1 | --- ../src/numpy/distutils/fcompiler/gnu.py 2009-04-05 18:09:20.000000000 +1000 |
| 2 | +++ gnu.py 2010-01-20 17:20:46.000000000 +1100 |
3 | 3 | @@ -5,6 +5,7 @@ |
4 | 4 | |
5 | 5 | from numpy.distutils.cpuinfo import cpu |
… |
… |
|
27 | 27 | st, out = exec_command(" ".join(newcmd)) |
28 | 28 | if st == 0: |
29 | 29 | for line in out.splitlines(): |
30 | | @@ -318,6 +322,160 @@ |
| 30 | @@ -318,6 +322,164 @@ |
31 | 31 | if m: |
32 | 32 | return m.group(1) |
33 | 33 | return "" |
… |
… |
|
54 | 54 | +# break |
55 | 55 | + |
56 | 56 | + |
| 57 | + if os.uname()[0]=="Darwin": |
| 58 | + link_command=["sage_fortran","-Wall","-undefined", "dynamic_lookup", "-bundle"] |
| 59 | + else: |
| 60 | + link_command=["sage_fortran","-Wall","-shared"] |
57 | 61 | + |
58 | 62 | + executables = { |
59 | 63 | + 'version_cmd' : ["sage_fortran","--version"], |
60 | 64 | + 'compiler_f77' : ["sage_fortran","-Wall","-ffixed-form","-fno-second-underscore"], |
61 | 65 | + 'compiler_f90' : ["sage_fortran","-Wall","-fno-second-underscore"], |
62 | 66 | + 'compiler_fix' : ["sage_fortran","-Wall","-ffixed-form","-fno-second-underscore"], |
63 | | + 'linker_so' : ["sage_fortran","-Wall","-shared"], |
| 67 | + 'linker_so' : link_command, |
64 | 68 | + 'archiver' : ["ar", "-cr"], |
65 | 69 | + 'ranlib' : ["ranlib"], |
66 | 70 | + 'linker_exe' : ["sage_fortran","-Wall"] |