8000 Merge pull request #8110 from rgommers/rpath-comma · numpy/numpy@33d850d · GitHub
[go: up one dir, main page]

Skip to content

Commit 33d850d

Browse files
authored
Merge pull request #8110 from rgommers/rpath-comma
BUG: distutils: fix issue with rpath in fcompiler/gnu.py
2 parents 9914e60 + 7562de3 commit 33d850d

File tree

1 file changed

+3
-1
lines changed
  • numpy/distutils/fcompiler

1 file changed

+3
-1
lines changed

numpy/distutils/fcompiler/gnu.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ def get_flags_arch(self):
235235
return []
236236

237237
def runtime_library_dir_option(self, dir):
238-
return '-Wl,-rpath="%s"' % dir
238+
sep = ',' if sys.platform == 'darwin' else '='
239+
return '-Wl,-rpath%s"%s"' % (sep, dir)
240+
239241

240242
class Gnu95FCompiler(GnuFCompiler):
241243
compiler_type = 'gnu95'

0 commit comments

Comments
 (0)
0