diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-10-06 10:57:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-06 10:57:22 -0500 |
commit | 33d850d522b3a1940c3ad06b63c79a466def11e9 (patch) | |
tree | 374bc2b3538c040047b66e2a940c67a8c27b6d57 | |
parent | 9914e603fa620aa7d3ae9576772eb50df4b799ef (diff) | |
parent | 7562de3a37fa39863ae094fd40215e77ca3156b4 (diff) | |
download | numpy-33d850d522b3a1940c3ad06b63c79a466def11e9.tar.gz |
Merge pull request #8110 from rgommers/rpath-comma
BUG: distutils: fix issue with rpath in fcompiler/gnu.py
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index 1de658afb..1cddf7e83 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -235,7 +235,9 @@ class GnuFCompiler(FCompiler): return [] def runtime_library_dir_option(self, dir): - return '-Wl,-rpath="%s"' % dir + sep = ',' if sys.platform == 'darwin' else '=' + return '-Wl,-rpath%s"%s"' % (sep, dir) + class Gnu95FCompiler(GnuFCompiler): compiler_type = 'gnu95' |