diff options
author | Arcesio Castaneda Medina <acastanedam@gmail.com> | 2018-12-30 17:58:43 +0100 |
---|---|---|
committer | Arcesio Castaneda Medina <acastanedam@gmail.com> | 2018-12-30 17:58:43 +0100 |
commit | f569120ab423257b25e2f0c06a9a00ea74965f63 (patch) | |
tree | 79e2e90d1a62d349f83251719f05011cbde1d43f /numpy/distutils/fcompiler | |
parent | 5e1a89113f69c49c03942dc0d02002c2bebb27a3 (diff) | |
download | numpy-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.py | 6 |
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 |