diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2015-12-25 21:51:59 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2015-12-25 21:51:59 +0000 |
commit | daf5be1a3d6f34ca0c561a46b13b3173e00c1f2b (patch) | |
tree | 8c48863d14f4fafdc9602a34dc76dddbbfc7fa20 /lang/python33/files/patch-Lib_distutils_unixccompiler.py | |
parent | Remove expired port: (diff) |
Restore unixccompiler.py patch, it was not included upstream
Notes
Notes:
svn path=/head/; revision=404477
Diffstat (limited to 'lang/python33/files/patch-Lib_distutils_unixccompiler.py')
-rw-r--r-- | lang/python33/files/patch-Lib_distutils_unixccompiler.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/python33/files/patch-Lib_distutils_unixccompiler.py b/lang/python33/files/patch-Lib_distutils_unixccompiler.py new file mode 100644 index 000000000000..ce566408bd79 --- /dev/null +++ b/lang/python33/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-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] |