multimedia/x265: 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.

Approved by:	portmgr (lld blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2018-09-20 18:33:21 +00:00
parent 580767bcc4
commit 40d07c6c3c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480188

View File

@ -44,6 +44,7 @@ USE_LDCONFIG= yes
CMAKE_ARGS= -DENABLE_PIC=on -DPLATFORM_LIBS=md -DENABLE_TESTS=on
CFLAGS_mips= -DNO_ATOMICS # cannot use lang/gcc
CFLAGS_mips64= -DNO_ATOMICS # cannot use lang/gcc
LDFLAGS_i386= -Wl,-znotext
EXTRACT_AFTER_ARGS+= --exclude "md5*" --exclude compat
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}/source