From d43312d77a5aa6aa5c1bf381acad00a27c516024 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 18 Sep 2018 16:04:19 +0000 Subject: [PATCH] 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 --- multimedia/xvid/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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 \