summaryrefslogtreecommitdiff
path: root/lang/python33/files/patch-Lib_distutils_unixccompiler.py
blob: ce566408bd79c3935a21a979cd9b86a9e433adee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Description: Some python extensions can't be compiled with clang 3.4
# Issue ID: http://bugs.python.org/issue20767
# Submitted by: antoine

--- Lib/distutils/unixccompiler.py.orig	2014-10-12 07:03:52 UTC
+++ Lib/distutils/unixccompiler.py
@@ -225,6 +225,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]