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:
parent
b5eb3bcca2
commit
3aa542e358
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421377
@ -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>
|
||||
|
11
devel/py-llvmlite/files/patch-ffi-Makefile.freebsd
Normal file
11
devel/py-llvmlite/files/patch-ffi-Makefile.freebsd
Normal 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 \
|
Loading…
Reference in New Issue
Block a user