aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2018-09-27 00:12:12 +0800
committeremaste <emaste@FreeBSD.org>2018-09-27 00:12:12 +0800
commit60279d141a108042caecd4ee9dbbf9e89b2c6d99 (patch)
tree04964e84769ceaf209ed3f5f1261b819bfb55c22 /games
parent3898de35c8dcd17235a542e48d3f63b4a06b9385 (diff)
downloadfreebsd-ports-gnome-60279d141a108042caecd4ee9dbbf9e89b2c6d99.tar.gz
freebsd-ports-gnome-60279d141a108042caecd4ee9dbbf9e89b2c6d99.tar.zst
freebsd-ports-gnome-60279d141a108042caecd4ee9dbbf9e89b2c6d99.zip
Add -znotext to LDFLAGS on i386, for lld
These ports link 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 'games')
-rw-r--r--games/q2pro/Makefile1
-rw-r--r--games/quakeforge/Makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/games/q2pro/Makefile b/games/q2pro/Makefile
index 68bc15ad0ecc..a71089e383f1 100644
--- a/games/q2pro/Makefile
+++ b/games/q2pro/Makefile
@@ -22,6 +22,7 @@ SVN_REV= 142
MAKE_ENV= LIBDIR="${LIBDIR}"
PLIST_SUB= LIBDIR="${LIBDIR:S|${PREFIX}/||}"
LIBDIR= ${PREFIX}/lib/${PORTNAME}
+LDFLAGS_i386= -Wl,-znotext
OPTIONS_DEFINE= CLIENT DEDICATED GAME GL SOFT UI
OPTIONS_DEFINE_i386= ASM
diff --git a/games/quakeforge/Makefile b/games/quakeforge/Makefile
index a1eae860a5d7..4eecacb0ec78 100644
--- a/games/quakeforge/Makefile
+++ b/games/quakeforge/Makefile
@@ -34,6 +34,7 @@ CONFIGURE_ARGS= --disable-alsa \
USE_CSTD= gnu89
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
+LDFLAGS_i386= -Wl,-znotext
SUB_FILES= pkg-message