diff options
author | emaste <emaste@FreeBSD.org> | 2018-09-19 00:04:19 +0800 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2018-09-19 00:04:19 +0800 |
commit | dd61c3c4e0cd049de6e52dfb2d4444e274c323c9 (patch) | |
tree | cc9c491bf88bd88a00a57961a337ea35d0b954a5 /multimedia/xvid | |
parent | 160c0c7b55ec136eea122bf6facfd66a88258b96 (diff) | |
download | freebsd-ports-gnome-dd61c3c4e0cd049de6e52dfb2d4444e274c323c9.tar.gz freebsd-ports-gnome-dd61c3c4e0cd049de6e52dfb2d4444e274c323c9.tar.zst freebsd-ports-gnome-dd61c3c4e0cd049de6e52dfb2d4444e274c323c9.zip |
multimedia/xvid: link with -znotext on i386
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, 230208
Approved by: bapt
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17195
Diffstat (limited to 'multimedia/xvid')
-rw-r--r-- | multimedia/xvid/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/multimedia/xvid/Makefile b/multimedia/xvid/Makefile index b7f2f829379d..1bb3849209f6 100644 --- a/multimedia/xvid/Makefile +++ b/multimedia/xvid/Makefile @@ -19,6 +19,9 @@ GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes USE_LDCONFIG= yes +# PR230208 Allow relocations against read-only segments (override lld default) +LDFLAGS_i386= -Wl,-z,notext + CONFIGURE_ENV+= ac_cv_prog_ac_yasm=no PLIST_FILES= include/xvid.h \ |