diff options
author | cookedm <cookedm@localhost> | 2007-04-04 12:56:47 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-04-04 12:56:47 +0000 |
commit | d31dac0cf53677d62db2f4bbfae4e2ddfaa29ba7 (patch) | |
tree | 7d604ae50695bc9b43bc39c14eb3cb505d70d363 /numpy/distutils/fcompiler/ibm.py | |
parent | 145babe82965c5534c18b8e9bf04c0ace25d2255 (diff) | |
download | numpy-d31dac0cf53677d62db2f4bbfae4e2ddfaa29ba7.tar.gz |
Fix for making Fortran extensions on AIX.
Diffstat (limited to 'numpy/distutils/fcompiler/ibm.py')
-rw-r--r-- | numpy/distutils/fcompiler/ibm.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/distutils/fcompiler/ibm.py b/numpy/distutils/fcompiler/ibm.py index 920d909d7..04a18f522 100644 --- a/numpy/distutils/fcompiler/ibm.py +++ b/numpy/distutils/fcompiler/ibm.py @@ -5,6 +5,7 @@ import sys from numpy.distutils.fcompiler import FCompiler from numpy.distutils.exec_command import exec_command, find_executable from distutils import log +from distutils.sysconfig import get_python_lib class IbmFCompiler(FCompiler): @@ -48,6 +49,15 @@ class IbmFCompiler(FCompiler): self.version = version = LooseVersion(l[0]) return version + def get_linker_so(self): + if sys.platform.startswith('aix'): + python_lib = get_python_lib(standard_lib=1) + ld_so_aix = os.path.join(python_lib, 'config', 'ld_so_aix') + python_exp = os.path.join(python_lib, 'config', 'python.exp') + return [ld_so_aix, self.executables['linker_so'], python_exp] + else: + return FCompiler.get_linker_so(self) + def get_flags(self): return ['-qextname'] |