diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2016-10-02 22:56:02 +1300 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2016-10-02 23:04:23 +1300 |
commit | 7562de3a37fa39863ae094fd40215e77ca3156b4 (patch) | |
tree | c9397e94f261993762e16ccf5336f006ffbd4000 /numpy/distutils/fcompiler/gnu.py | |
parent | c8408bf9c094dfc89177d1831c60cb5fee94050f (diff) | |
download | numpy-7562de3a37fa39863ae094fd40215e77ca3156b4.tar.gz |
BUG: distutils: fix issue with rpath in fcompiler/gnu.py
``-Wl,rpath=`` is Linux-specific, OS X needs a comma.
This addresses gh-6486, which was already closed but not actually addressed.
Diffstat (limited to 'numpy/distutils/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' |