1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

multimedia/openh264: add -znotext to LDFLAGS on i386, for lld

Example error:
/usr/bin/ld: error: can't create dynamic relocation R_386_32 against
    local symbol in readonly segment; recompile object files with -fPIC

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:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D17179
This commit is contained in:
Ed Maste 2018-09-18 16:06:56 +00:00
parent fcedde52c4
commit 2bdeb107ae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480034

View File

@ -24,6 +24,7 @@ MAKE_ARGS= PREFIX="${PREFIX}" \
CFLAGS_OPT="" CFLAGS_DEBUG=""
ALL_TARGET= all
PLIST_SUB= PORTVERSION="${PORTVERSION}"
LDFLAGS_i386= -Wl,-znotext
OPTIONS_DEFINE= DEBUG PLUGINS TEST
OPTIONS_DEFAULT=PLUGINS