diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-01-19 17:59:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-19 17:59:00 -0700 |
commit | a709c6e8535d40269de0551d45749133ea63f7ec (patch) | |
tree | aa20d1d0449defabd24d5c64cf650cf8fc512bda /numpy/distutils/fcompiler | |
parent | eec15869450099cfcb54343ca057a8f5ce811b80 (diff) | |
parent | f569120ab423257b25e2f0c06a9a00ea74965f63 (diff) | |
download | numpy-a709c6e8535d40269de0551d45749133ea63f7ec.tar.gz |
Merge pull request #12631 from acastanedam/f2py_pgi
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 |