summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/gnu.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-01-31 07:08:06 -0700
committerGitHub <noreply@github.com>2019-01-31 07:08:06 -0700
commitb1d7001ba91a38bafa7b61489e0071ad785e2c96 (patch)
treecf3090c6b91d4f0011fe0d7115b0dbf9d2395ae7 /numpy/distutils/fcompiler/gnu.py
parentba8be5f4eee98662a99cb3843a57030edb1e7f95 (diff)
parent37ba40b7f975f266d24fa916050fa27c88ab9dbf (diff)
downloadnumpy-b1d7001ba91a38bafa7b61489e0071ad785e2c96.tar.gz
Merge pull request #12892 from eric-wieser/distutils-debug
BUG: Do not double-quote arguments passed on to the linker
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r--numpy/distutils/fcompiler/gnu.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py
index 81769e562..965c67041 100644
--- a/numpy/distutils/fcompiler/gnu.py
+++ b/numpy/distutils/fcompiler/gnu.py
@@ -269,8 +269,11 @@ class GnuFCompiler(FCompiler):
# Linux/Solaris/Unix support RPATH, Windows and AIX do not
raise NotImplementedError
+ # TODO: could use -Xlinker here, if it's supported
+ assert "," not in dir
+
sep = ',' if sys.platform == 'darwin' else '='
- return '-Wl,-rpath%s"%s"' % (sep, dir)
+ return '-Wl,-rpath%s%s' % (sep, dir)
class Gnu95FCompiler(GnuFCompiler):