diff options
| author | Stefan Krah <skrah@bytereef.org> | 2016-08-03 09:23:31 (GMT) |
|---|---|---|
| committer | Stefan Krah <skrah@bytereef.org> | 2016-08-03 09:23:31 (GMT) |
| commit | 2246f39c4002d1e2398e60a459a0cd320d89f59e (patch) | |
| tree | 77e2a282ab91de782f73e230466783bfa5427da6 /Lib/distutils/unixccompiler.py | |
| parent | 75d7b615ba70fc5759d16dee95bbd8f0474d8a9c (diff) | |
| download | cpython-2246f39c4002d1e2398e60a459a0cd320d89f59e.zip cpython-2246f39c4002d1e2398e60a459a0cd320d89f59e.tar.gz cpython-2246f39c4002d1e2398e60a459a0cd320d89f59e.tar.bz2 | |
Issue #20767: Fix -R option for FreeBSD/clang.
Diffstat (limited to 'Lib/distutils/unixccompiler.py')
| -rw-r--r-- | Lib/distutils/unixccompiler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 4c35676..3af540e 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -230,6 +230,8 @@ class UnixCCompiler(CCompiler): if sys.platform[:6] == "darwin": # MacOSX's linker doesn't understand the -R flag at all return "-L" + dir + elif sys.platform[:7] == "freebsd": + return "-Wl,-rpath=" + dir elif sys.platform[:5] == "hp-ux": if self._is_gcc(compiler): return ["-Wl,+s", "-L" + dir] |
