pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libffi Fix build on FreeBSD 12
details: https://anonhg.NetBSD.org/pkgsrc/rev/98ab13d8d731
branches: trunk
changeset: 347496:98ab13d8d731
user: pho <pho%pkgsrc.org@localhost>
date: Sun Jan 12 10:48:50 2020 +0000
description:
Fix build on FreeBSD 12
diffstat:
devel/libffi/Makefile | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 82d285393e63 -r 98ab13d8d731 devel/libffi/Makefile
--- a/devel/libffi/Makefile Sun Jan 12 10:11:35 2020 +0000
+++ b/devel/libffi/Makefile Sun Jan 12 10:48:50 2020 +0000
@@ -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 @@
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"
Home |
Main Index |
Thread Index |
Old Index