diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2019-01-31 09:55:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-31 09:55:02 -0700 |
| commit | 7338e777fb003804226fb8e191a307afcaa48dec (patch) | |
| tree | df8e3db5d652f34ca0daf7279fa1be4a48d9ccf7 /numpy/distutils/fcompiler | |
| parent | 2c74ddc9e06618213f2e636f3c583bebed1cf1ee (diff) | |
| parent | 37ba40b7f975f266d24fa916050fa27c88ab9dbf (diff) | |
| download | numpy-7338e777fb003804226fb8e191a307afcaa48dec.tar.gz | |
Merge pull request #12898 from eric-wieser/distutils-debug
BUG: Do not double-quote arguments passed on to the linker
Diffstat (limited to 'numpy/distutils/fcompiler')
| -rw-r--r-- | numpy/distutils/fcompiler/absoft.py | 2 | ||||
| -rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 5 | ||||
| -rw-r--r-- | numpy/distutils/fcompiler/intel.py | 5 | ||||
| -rw-r--r-- | numpy/distutils/fcompiler/pg.py | 2 | ||||
| -rw-r--r-- | numpy/distutils/fcompiler/sun.py | 2 |
5 files changed, 11 insertions, 5 deletions
diff --git a/numpy/distutils/fcompiler/absoft.py b/numpy/distutils/fcompiler/absoft.py index 2c3edfe02..d14fee0e1 100644 --- a/numpy/distutils/fcompiler/absoft.py +++ b/numpy/distutils/fcompiler/absoft.py @@ -66,7 +66,7 @@ class AbsoftFCompiler(FCompiler): def library_dir_option(self, dir): if os.name=='nt': - return ['-link', '/PATH:"%s"' % (dir)] + return ['-link', '/PATH:%s' % (dir)] return "-L" + dir def library_option(self, lib): 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): diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py index 217eac8fb..51f681274 100644 --- a/numpy/distutils/fcompiler/intel.py +++ b/numpy/distutils/fcompiler/intel.py @@ -23,7 +23,10 @@ class BaseIntelFCompiler(FCompiler): f + '.f', '-o', f + '.o'] def runtime_library_dir_option(self, dir): - return '-Wl,-rpath="%s"' % dir + # TODO: could use -Xlinker here, if it's supported + assert "," not in dir + + return '-Wl,-rpath=%s' % dir class IntelFCompiler(BaseIntelFCompiler): diff --git a/numpy/distutils/fcompiler/pg.py b/numpy/distutils/fcompiler/pg.py index cdba0e39a..9c51947fd 100644 --- a/numpy/distutils/fcompiler/pg.py +++ b/numpy/distutils/fcompiler/pg.py @@ -61,7 +61,7 @@ class PGroupFCompiler(FCompiler): return ["-shared", '-fpic'] def runtime_library_dir_option(self, dir): - return '-R"%s"' % dir + return '-R%s' % dir if sys.version_info >= (3, 5): diff --git a/numpy/distutils/fcompiler/sun.py b/numpy/distutils/fcompiler/sun.py index d477d3308..561ea854f 100644 --- a/numpy/distutils/fcompiler/sun.py +++ b/numpy/distutils/fcompiler/sun.py @@ -44,7 +44,7 @@ class SunFCompiler(FCompiler): return opt def runtime_library_dir_option(self, dir): - return '-R"%s"' % dir + return '-R%s' % dir if __name__ == '__main__': from distutils import log |
