aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2018-09-19 00:59:01 +0800
committeremaste <emaste@FreeBSD.org>2018-09-19 00:59:01 +0800
commitf78e0f17f9e719253c5be86775fd0d6ff143286e (patch)
treeb931321bedf4384bc5c1a975ea2b89bda916afd5 /math
parentf05f1d932d39f46a5c3fd3aac7ab9673fe19ebaf (diff)
downloadfreebsd-ports-gnome-f78e0f17f9e719253c5be86775fd0d6ff143286e.tar.gz
freebsd-ports-gnome-f78e0f17f9e719253c5be86775fd0d6ff143286e.tar.zst
freebsd-ports-gnome-f78e0f17f9e719253c5be86775fd0d6ff143286e.zip
math/z3: add -znotext to LDFLAGS on i386, for lld
This port links some non-PIC code, which fails with lld as it defaults to disallowing relocations against read-only segments. For i386 we can just add -znotext unconditionally: for GNU BFD ld it just affirms BFD's existing default. PR: 214864 Approved by: portmgr (lld blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'math')
-rw-r--r--math/z3/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/math/z3/Makefile b/math/z3/Makefile
index 48a97ff18401..409d42e86f9b 100644
--- a/math/z3/Makefile
+++ b/math/z3/Makefile
@@ -35,6 +35,7 @@ GMP_LIB_DEPENDS= libgmp.so:math/gmp
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
USE_LDCONFIG= yes
+LDFLAGS_i386= -Wl,-znotext
BUILD_WRKSRC= ${WRKSRC}/build
INSTALL_WRKSRC= ${WRKSRC}/build