summaryrefslogtreecommitdiff
path: root/devel/libffi
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2020-01-12 10:48:50 +0000
committerpho <pho@pkgsrc.org>2020-01-12 10:48:50 +0000
commit8da3888efee9f24eac39f279b4debe814425fbda (patch)
tree318c5ac8781908f7d8779f4d6e078cecb1ebc4fc /devel/libffi
parente1a51a86aa5984386fb0aaae5e04cece970d3eff (diff)
downloadpkgsrc-8da3888efee9f24eac39f279b4debe814425fbda.tar.gz
Fix build on FreeBSD 12
Diffstat (limited to 'devel/libffi')
-rw-r--r--devel/libffi/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/libffi/Makefile b/devel/libffi/Makefile
index d1e109e97ed..e5b8f36b921 100644
--- a/devel/libffi/Makefile
+++ b/devel/libffi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2017/09/05 15:08:42 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2020/01/12 10:48:50 pho Exp $
DISTNAME= libffi-3.2.1
PKGREVISION= 4
@@ -50,5 +50,11 @@ USE_TOOLS+= bash gmake
MAKE_FLAGS+= SHELL=${TOOLS_DIR}/bin/bash
.endif
+# On platforms where ld(1) is LLVM ld, relocations against read-only
+# segments has to be explicitly allowed.
+.if !empty(MACHINE_PLATFORM:MFreeBSD-1[2-9].*-*)
+CFLAGS+= -Wl,-z,notext
+.endif
+
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"