aboutsummaryrefslogtreecommitdiff
path: root/games/q2pro
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-09-26 16:12:12 +0000
committerEd Maste <emaste@FreeBSD.org>2018-09-26 16:12:12 +0000
commit8399ead6f8fe54dc8ff4baad8e3fc70520dcc1ab (patch)
tree04964e84769ceaf209ed3f5f1261b819bfb55c22 /games/q2pro
parentb0a163659a917eec2efcdde8f90e9f107d3a6142 (diff)
downloadports-8399ead6f8fe54dc8ff4baad8e3fc70520dcc1ab.tar.gz
ports-8399ead6f8fe54dc8ff4baad8e3fc70520dcc1ab.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
Notes
Notes: svn path=/head/; revision=480747
Diffstat (limited to 'games/q2pro')
-rw-r--r--games/q2pro/Makefile1
1 files changed, 1 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