summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/gnu.py
diff options
context:
space:
mode:
authorGavinZhang <zhanggan@cn.ibm.com>2022-08-14 11:01:22 +0800
committerGavinZhang <zhanggan@cn.ibm.com>2022-08-14 11:01:22 +0800
commit505cff914de69205daec2dc4e60a3017a0534b4b (patch)
tree68cb2c1a5a3996b9fa2d0dfbc4adb724909bad04 /numpy/distutils/fcompiler/gnu.py
parentc652fcbd9c7d651780ea56f078c8609932822cf7 (diff)
downloadnumpy-505cff914de69205daec2dc4e60a3017a0534b4b.tar.gz
DEV: supporting IBM i system
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r--numpy/distutils/fcompiler/gnu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py
index cdb6aef94..3472b5d4c 100644
--- a/numpy/distutils/fcompiler/gnu.py
+++ b/numpy/distutils/fcompiler/gnu.py
@@ -256,7 +256,7 @@ class GnuFCompiler(FCompiler):
if sys.platform == 'darwin':
return f'-Wl,-rpath,{dir}'
- elif sys.platform[:3] == 'aix':
+ elif sys.platform.startswith(('aix', 'os400')):
# AIX RPATH is called LIBPATH
return f'-Wl,-blibpath:{dir}'
else:
@@ -305,7 +305,7 @@ class Gnu95FCompiler(GnuFCompiler):
module_dir_switch = '-J'
module_include_switch = '-I'
- if sys.platform[:3] == 'aix':
+ if sys.platform.startswith(('aix', 'os400')):
executables['linker_so'].append('-lpthread')
if platform.architecture()[0][:2] == '64':
for key in ['compiler_f77', 'compiler_f90','compiler_fix','linker_so', 'linker_exe']: