mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Issue #20767: Fix -R option for FreeBSD/clang.
This commit is contained in:
parent
6cafececbf
commit
9de620e970
1 changed files with 2 additions and 0 deletions
|
@ -227,6 +227,8 @@ class UnixCCompiler(CCompiler):
|
||||||
if sys.platform[:6] == "darwin":
|
if sys.platform[:6] == "darwin":
|
||||||
# MacOSX's linker doesn't understand the -R flag at all
|
# MacOSX's linker doesn't understand the -R flag at all
|
||||||
return "-L" + dir
|
return "-L" + dir
|
||||||
|
elif sys.platform[:7] == "freebsd":
|
||||||
|
return "-Wl,-rpath=" + dir
|
||||||
elif sys.platform[:5] == "hp-ux":
|
elif sys.platform[:5] == "hp-ux":
|
||||||
if self._is_gcc(compiler):
|
if self._is_gcc(compiler):
|
||||||
return ["-Wl,+s", "-L" + dir]
|
return ["-Wl,+s", "-L" + dir]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue