1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

devel/py-llvmlite: fix linking of libllvmlite.so to the correct libgcc_s.so

PR:		211346
Submitted by:	David Kalliecharan <dave@dal.ca> (maintainer)
This commit is contained in:
Kurt Jaeger 2016-09-05 16:11:23 +00:00
parent b5eb3bcca2
commit 3aa542e358
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421377
2 changed files with 18 additions and 1 deletions

View File

@ -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}:devel/llvm${LLVM_VER}
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>

View File

@ -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 \