summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler
diff options
context:
space:
mode:
authorArcesio Castaneda Medina <acastanedam@gmail.com>2018-12-30 17:58:43 +0100
committerArcesio Castaneda Medina <acastanedam@gmail.com>2018-12-30 17:58:43 +0100
commitf569120ab423257b25e2f0c06a9a00ea74965f63 (patch)
tree79e2e90d1a62d349f83251719f05011cbde1d43f /numpy/distutils/fcompiler
parent5e1a89113f69c49c03942dc0d02002c2bebb27a3 (diff)
downloadnumpy-f569120ab423257b25e2f0c06a9a00ea74965f63.tar.gz
BUG: fix f2py problem to build wrappers using PGI's Fortran
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r--numpy/distutils/fcompiler/pg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/pg.py b/numpy/distutils/fcompiler/pg.py
index 99071800a..cdba0e39a 100644
--- a/numpy/distutils/fcompiler/pg.py
+++ b/numpy/distutils/fcompiler/pg.py
@@ -33,7 +33,7 @@ class PGroupFCompiler(FCompiler):
'compiler_f77': ["pgfortran"],
'compiler_fix': ["pgfortran", "-Mfixed"],
'compiler_f90': ["pgfortran"],
- 'linker_so': ["pgfortran", "-shared", "-fpic"],
+ 'linker_so': ["pgfortran"],
'archiver': ["ar", "-cr"],
'ranlib': ["ranlib"]
}
@@ -56,6 +56,10 @@ class PGroupFCompiler(FCompiler):
def get_flags_linker_so(self):
return ["-dynamic", '-undefined', 'dynamic_lookup']
+ else:
+ def get_flags_linker_so(self):
+ return ["-shared", '-fpic']
+
def runtime_library_dir_option(self, dir):
return '-R"%s"' % dir