ports/devel/libffi/Makefile
Dimitry Andric d7bec8028d Apply upstream change from libffi to check for HAVE_AS_X86_PCREL for all
x86 targets.  This should eliminate any text relocations, in particular
for the i386 build, making it possible to build the port with lld
without having to use -z notext.

Obtained from:	https://github.com/libffi/libffi/pull/174
Approved by:	zeising (maintainer)
PR:		214864
MFH:		2017Q4
2017-12-18 17:48:43 +00:00

37 lines
816 B
Makefile

# Created by: Horance Chou <horance@freedom.ie.cycu.edu.tw>
# $FreeBSD$
PORTNAME= libffi
PORTVERSION= 3.2.1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SOURCEWARE/${PORTNAME}
MAINTAINER= zeising@FreeBSD.org
COMMENT= Foreign Function Interface
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= runtest:misc/dejagnu
USES= libtool pathfix
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
INFO= libffi
PLIST_SUB= PORTVERSION=${PORTVERSION}
TEST_TARGET= check
post-patch:
@${REINPLACE_CMD} -e 's| -Wno-psabi||g' \
${WRKSRC}/testsuite/lib/libffi.exp
post-install:
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffi.h \
${STAGEDIR}${PREFIX}/include/
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffitarget.h \
${STAGEDIR}${PREFIX}/include/
.include <bsd.port.mk>