Line
Link Here
|
0 |
-- Lib/distutils/unixccompiler.py |
0 |
++ Lib/distutils/unixccompiler.py |
Lines 225-230
Link Here
|
225 |
if sys.platform[:6] == "darwin": |
225 |
if sys.platform[:6] == "darwin": |
226 |
# MacOSX's linker doesn't understand the -R flag at all |
226 |
# MacOSX's linker doesn't understand the -R flag at all |
227 |
return "-L" + dir |
227 |
return "-L" + dir |
|
|
228 |
elif sys.platform[:7] == "freebsd": |
229 |
return "-Wl,-rpath=" + dir |
230 |
elif sys.platform[:5] == "linux": |
231 |
return "-Wl,-rpath=" + dir |
228 |
elif sys.platform[:5] == "hp-ux": |
232 |
elif sys.platform[:5] == "hp-ux": |
229 |
if self._is_gcc(compiler): |
233 |
if self._is_gcc(compiler): |
230 |
return ["-Wl,+s", "-L" + dir] |
234 |
return ["-Wl,+s", "-L" + dir] |