diff options
Diffstat (limited to 'lang/python31')
-rw-r--r-- | lang/python31/Makefile | 2 | ||||
-rw-r--r-- | lang/python31/files/patch-Lib__distutils__unixccompiler.py | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lang/python31/Makefile b/lang/python31/Makefile index d997d114025f..88d78b8454df 100644 --- a/lang/python31/Makefile +++ b/lang/python31/Makefile @@ -2,7 +2,7 @@ PORTNAME= python31 PORTVERSION= 3.1.5 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} diff --git a/lang/python31/files/patch-Lib__distutils__unixccompiler.py b/lang/python31/files/patch-Lib__distutils__unixccompiler.py new file mode 100644 index 000000000000..930c565520bb --- /dev/null +++ b/lang/python31/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 14:58:11.840899942 +1100 ++++ ./Lib/distutils/unixccompiler.py 2014-03-09 15:07:24.038743110 +1100 +@@ -285,6 +285,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] |