pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libffi



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun Jan 12 10:48:50 UTC 2020

Modified Files:
        pkgsrc/devel/libffi: Makefile

Log Message:
Fix build on FreeBSD 12


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pkgsrc/devel/libffi/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libffi/Makefile
diff -u pkgsrc/devel/libffi/Makefile:1.33 pkgsrc/devel/libffi/Makefile:1.34
--- pkgsrc/devel/libffi/Makefile:1.33   Tue Sep  5 15:08:42 2017
+++ pkgsrc/devel/libffi/Makefile        Sun Jan 12 10:48:50 2020
@@ -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"



Home | Main Index | Thread Index | Old Index