blob: a7e71a0be3cb937ab778edaaf0cd6e6ba03ce486 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- ./Lib/distutils/unixccompiler.py.orig 2013-11-10 07:36:40.000000000 +0000
+++ ./Lib/distutils/unixccompiler.py 2014-02-19 15:41:48.000000000 +0000
@@ -228,6 +228,8 @@
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]
|