summaryrefslogtreecommitdiff
path: root/lang/python32/files/patch-Lib__distutils__unixccompiler.py
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2014-04-20 01:35:39 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2014-04-20 01:35:39 +0000
commit21c7eb29520ac1b037a61fad06cc3f6deb9d8fec (patch)
tree10eddd80ada2a63dcbb01b596cd8b78ff92f995d /lang/python32/files/patch-Lib__distutils__unixccompiler.py
parentAdd new port multimedia/naludump: (diff)
lang/python{31,32,33}: Add clang 3.4 fix from python27
Copy change committed to python27 [1] to python31, python32 and python33 to fix builds of some extensions with Clang 3.4. Also add breadcrumbs to the patch header in lang/python27 referencing the upstream issue. [2] The Python 3.4 port (lang/python34) already carries the patch. [1] https://svnweb.freebsd.org/ports?view=revision&revision=346428 [2] http://bugs.python.org/issue20767
Notes
Notes: svn path=/head/; revision=351610
Diffstat (limited to 'lang/python32/files/patch-Lib__distutils__unixccompiler.py')
-rw-r--r--lang/python32/files/patch-Lib__distutils__unixccompiler.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/python32/files/patch-Lib__distutils__unixccompiler.py b/lang/python32/files/patch-Lib__distutils__unixccompiler.py
new file mode 100644
index 000000000000..3480dc2b4ca2
--- /dev/null
+++ b/lang/python32/files/patch-Lib__distutils__unixccompiler.py
@@ -0,0 +1,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-03-09 15:23:38.647562705 +1100
++++ ./Lib/distutils/unixccompiler.py 2014-03-09 15:23:56.020904510 +1100
+@@ -225,6 +225,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]