summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2018-11-19 22:35:10 -0800
committerGitHub <noreply@github.com>2018-11-19 22:35:10 -0800
commit9eaafe540ad7f176900a644560fb19fc54e13b27 (patch)
treecd922f7b183a301091b9a412f2c62574ca7d7e85
parent835b9d6bf430d7689c273ff00f123694fafcbe21 (diff)
parent68833d7f43c631082d842f2e3999d57242a21732 (diff)
downloadnumpy-9eaafe540ad7f176900a644560fb19fc54e13b27.tar.gz
Merge pull request #12420 from aixoss/master
MAINT: gfortran needs -lpthread & -maix64(64 build) in AIX
-rw-r--r--numpy/distutils/fcompiler/gnu.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py
index 0f7e48152..81769e562 100644
--- a/numpy/distutils/fcompiler/gnu.py
+++ b/numpy/distutils/fcompiler/gnu.py
@@ -315,6 +315,12 @@ class Gnu95FCompiler(GnuFCompiler):
module_dir_switch = '-J'
module_include_switch = '-I'
+ if sys.platform[:3] == 'aix':
+ executables['linker_so'].append('-lpthread')
+ if platform.architecture()[0][:2] == '64':
+ for key in ['compiler_f77', 'compiler_f90','compiler_fix','linker_so', 'linker_exe']:
+ executables[key].append('-maix64')
+
g2c = 'gfortran'
def _universal_flags(self, cmd):