summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2014-02-28 03:04:19 +0000
committerSean Bruno <sbruno@FreeBSD.org>2014-02-28 03:04:19 +0000
commit6de6c75db37892a8544085b70b4f3c3e357b4548 (patch)
tree9e59ef9047d7763caf2d85dbb59eee4f582d6343 /lang
parent- Update to 0.24 (diff)
Unbreak python module builds across the tree as a result of clang 3.4 import
now disallowing the use of -R. Submitted by: antoine Reviewed by: gjb
Notes
Notes: svn path=/head/; revision=346428
Diffstat (limited to 'lang')
-rw-r--r--lang/python27/Makefile2
-rw-r--r--lang/python27/files/patch-Lib__distutils__unixccompiler.py11
2 files changed, 12 insertions, 1 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index 3f404f68b09e..3301c99589bb 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -3,7 +3,7 @@
PORTNAME= python27
PORTVERSION= 2.7.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
diff --git a/lang/python27/files/patch-Lib__distutils__unixccompiler.py b/lang/python27/files/patch-Lib__distutils__unixccompiler.py
new file mode 100644
index 000000000000..a7e71a0be3cb
--- /dev/null
+++ b/lang/python27/files/patch-Lib__distutils__unixccompiler.py
@@ -0,0 +1,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]