freebsd-ports/math/py-numpy/files/patch-numpy-distutils-fcompiler-gnu.py
Diane Bruce 47e4e30358 - I added -fPIC to compile_switch to work around build of fftpack in scipy
on amd64.
  A better fix would be to set pic_flags instead, and have scipy build a
  shared object for dfftpack instead a static archive, but I didn't figure
  out how. [1]
- Pass maintainership to llwang@infor.org

PR:		ports/112429 [1]
Submitted by:	Li-Lun "Leland" Wang <llwang@infor.org> (new maintainer)
2007-09-02 20:03:45 +00:00

26 lines
1.1 KiB
Python

--- numpy/distutils/fcompiler/gnu.py.orig 2007-08-20 21:00:55.000000000 -0500
+++ numpy/distutils/fcompiler/gnu.py 2007-08-27 15:12:10.000000000 -0500
@@ -67,12 +67,12 @@
for key in ['version_cmd', 'compiler_f77', 'linker_so', 'linker_exe']:
executables[key].append('-mno-cygwin')
- g2c = 'g2c'
+ g2c = 'gfortran'
suggested_f90_compiler = 'gnu95'
def find_executables(self):
- for fc_exe in [find_executable(c) for c in ['g77','f77']]:
+ for fc_exe in [find_executable(c) for c in ['gfortran', 'gfortran42', 'g77','f77']]:
if os.path.isfile(fc_exe):
break
for key in ['version_cmd', 'compiler_f77', 'linker_so', 'linker_exe']:
@@ -318,7 +318,7 @@
g2c = 'gfortran'
def find_executables(self):
- for fc_exe in [find_executable(c) for c in ['gfortran','f95']]:
+ for fc_exe in [find_executable(c) for c in ['gfortran', 'gfortran42', 'f95']]:
if os.path.isfile(fc_exe):
break
for key in ['version_cmd', 'compiler_f77', 'compiler_f90',