Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2015 21:51:59 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404477 - in head/lang/python33: . files
Message-ID:  <201512252151.tBPLpxR7055032@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri Dec 25 21:51:59 2015
New Revision: 404477
URL: https://svnweb.freebsd.org/changeset/ports/404477

Log:
  Restore unixccompiler.py patch, it was not included upstream

Added:
  head/lang/python33/files/patch-Lib_distutils_unixccompiler.py   (contents, props changed)
Modified:
  head/lang/python33/Makefile

Modified: head/lang/python33/Makefile
==============================================================================
--- head/lang/python33/Makefile	Fri Dec 25 21:45:05 2015	(r404476)
+++ head/lang/python33/Makefile	Fri Dec 25 21:51:59 2015	(r404477)
@@ -2,6 +2,7 @@
 
 PORTNAME=	python33
 PORTVERSION=	3.3.6
+PORTREVISION=	1
 CATEGORIES=	lang python ipv6
 MASTER_SITES=	PYTHON/ftp/python/${PORTVERSION}
 DISTNAME=	Python-${PORTVERSION}

Added: head/lang/python33/files/patch-Lib_distutils_unixccompiler.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/python33/files/patch-Lib_distutils_unixccompiler.py	Fri Dec 25 21:51:59 2015	(r404477)
@@ -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]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512252151.tBPLpxR7055032>