svn commit: r421377 - in head/devel/py-llvmlite: . files

Kurt Jaeger pi at FreeBSD.org
Mon Sep 5 16:11:25 UTC 2016


Author: pi
Date: Mon Sep  5 16:11:23 2016
New Revision: 421377
URL: https://svnweb.freebsd.org/changeset/ports/421377

Log:
  devel/py-llvmlite: fix linking of libllvmlite.so to the correct libgcc_s.so
  
  PR:		211346
  Submitted by:	David Kalliecharan <dave at dal.ca> (maintainer)

Added:
  head/devel/py-llvmlite/files/
  head/devel/py-llvmlite/files/patch-ffi-Makefile.freebsd   (contents, props changed)
Modified:
  head/devel/py-llvmlite/Makefile

Modified: head/devel/py-llvmlite/Makefile
==============================================================================
--- head/devel/py-llvmlite/Makefile	Mon Sep  5 16:00:33 2016	(r421376)
+++ head/devel/py-llvmlite/Makefile	Mon Sep  5 16:11:23 2016	(r421377)
@@ -3,6 +3,7 @@
 
 PORTNAME=	llvmlite
 PORTVERSION=	0.13.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,7 +17,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BROKEN_FreeBSD_9=	llvm38 does not find include cmath
 
 # Python 2.7,3.4+
-USES=		python
+USES=		python fortran
 USE_PYTHON=	distutils autoplist
 
 .include <bsd.port.pre.mk>
@@ -33,4 +34,9 @@ BUILD_DEPENDS+=	llvm-config${LLVM_VER}:d
 
 MAKE_ENV=	LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VER}
 
+post-patch:
+# Requried, because Makefile.freebsd does not see VARS from this Makefile
+	${REINPLACE_CMD} -e "s|%%_GCC_VER%%|${_GCC_VER}|" \
+		${WRKSRC}/ffi/Makefile.freebsd
+
 .include <bsd.port.post.mk>

Added: head/devel/py-llvmlite/files/patch-ffi-Makefile.freebsd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-llvmlite/files/patch-ffi-Makefile.freebsd	Mon Sep  5 16:11:23 2016	(r421377)
@@ -0,0 +1,11 @@
+--- ffi/Makefile.freebsd.orig	2016-09-03 17:26:16.399458000 +0000
++++ ffi/Makefile.freebsd	2016-09-03 17:26:38.057115000 +0000
+@@ -1,7 +1,7 @@
+ 
+ CXX = clang++ -std=c++11 -stdlib=libc++
+ CXXFLAGS = $(LLVM_CXXFLAGS)
+-LDFLAGS = $(LLVM_LDFLAGS)
++LDFLAGS = $(LLVM_LDFLAGS) -shared -Wl,-rpath=$(LOCALBASE)/lib/gcc%%_GCC_VER%%
+ LIBS = $(LLVM_LIBS)
+ INCLUDE = core.h
+ SRC = assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp \


More information about the svn-ports-head mailing list