opnsense-ports/lang/python27/files/patch-Lib__distutils__unixccompiler.py
Franco Fichtner cce23da8e4 lang/python27: switch to 2.7.10
We merge this ahead of FreeBSD, mostly to make use of the builtin
fixes for LibreSSL builds.  Many thanks to Bernard Spil for his
work on this!!!

Taken from: https://reviews.freebsd.org/D2637
2015-06-29 07:46:10 +02:00

15 lines
709 B
Python

# 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 2013-11-10 07:36:40.000000000 +0000
+++ ./Lib/distutils/unixccompiler.py 2014-02-19 15:41:48.000000000 +0000
@@ -228,6 +228,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]