HomeFreeBSD

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

Description

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

Example error:
/usr/bin/ld: error: can't create dynamic relocation R_386_PC32 against

symbol: gettimeofday 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, 230214
Reviewed by: koobs
Approved by: koobs
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17201

Details

Provenance
emasteAuthored on
Reviewer
koobs
Differential Revision
D17201: multimedia/libx264: add -znotext to LDFLAGS on i386, for lld
Parents
rP480023: multimedia/openquicktime: add -fPIC to i386 CFLAGS
Branches
Unknown
Tags
Unknown