diff options
author | Stefan Krah <skrah@bytereef.org> | 2016-08-03 11:18:26 +0200 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2016-08-03 11:18:26 +0200 |
commit | c3f23f70001777fd66c7c33b9101bb114540a53a (patch) | |
tree | 9eb4638fd11e776f586903ee827cb488867bc827 | |
parent | f11c5c1af6806da60cedfdbc94b4548fefec73bb (diff) | |
download | python-setuptools-git-c3f23f70001777fd66c7c33b9101bb114540a53a.tar.gz |
Issue #20767: Fix -R option for FreeBSD/clang.
-rw-r--r-- | unixccompiler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unixccompiler.py b/unixccompiler.py index 92d14dfe..3f321c28 100644 --- a/unixccompiler.py +++ b/unixccompiler.py @@ -227,6 +227,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] |