ports/math/py-numpy/files/patch-numpy-distutils-fcompiler-__init__.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

24 lines
1 KiB
Python

--- numpy/distutils/fcompiler/__init__.py.orig 2007-08-20 21:00:55.000000000 -0500
+++ numpy/distutils/fcompiler/__init__.py 2007-08-27 19:26:14.000000000 -0500
@@ -78,7 +78,7 @@
'ranlib' : None,
}
- compile_switch = "-c"
+ compile_switch = "-c -fPIC"
object_switch = "-o " # Ending space matters! It will be stripped
# but if it is missing then object_switch
# will be prefixed to object file name by
@@ -278,11 +278,7 @@
f90 = self.__get_cmd('compiler_f90','F90',(conf,'f90exec'))
# Temporarily setting f77,f90 compilers so that
# version_cmd can use their executables.
- if f77:
- self.set_executables(compiler_f77=[f77])
- if f90:
- self.set_executables(compiler_f90=[f90])
-
+ # If you do that, --f77exec and --f90exec break -db
# Must set version_cmd before others as self.get_flags*
# methods may call self.get_version.
vers_cmd = self.__get_cmd(self.get_version_cmd)