From 7562de3a37fa39863ae094fd40215e77ca3156b4 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 2 Oct 2016 22:56:02 +1300 Subject: 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. --- numpy/distutils/fcompiler/gnu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'numpy') 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' -- cgit v1.2.1