diff options
author | Ayappan P <ayappap2@in.ibm.com> | 2018-11-19 20:45:30 +0530 |
---|---|---|
committer | Ayappan P <ayappap2@in.ibm.com> | 2018-11-19 20:45:30 +0530 |
commit | 68833d7f43c631082d842f2e3999d57242a21732 (patch) | |
tree | c182d12c2993723dac61e5c8bec78bfb271dffad /numpy/distutils/fcompiler | |
parent | b0313792953c49629f94fcc79bf14e913ca77f36 (diff) | |
download | numpy-68833d7f43c631082d842f2e3999d57242a21732.tar.gz |
gfortran needs -lpthread & -maix64(64 build) in AIX
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 6 |
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): |