svn commit: r480032 - head/multimedia/xvid

Ed Maste emaste at FreeBSD.org
Tue Sep 18 16:04:20 UTC 2018


Author: emaste (src committer)
Date: Tue Sep 18 16:04:19 2018
New Revision: 480032
URL: https://svnweb.freebsd.org/changeset/ports/480032

Log:
  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

Modified:
  head/multimedia/xvid/Makefile

Modified: head/multimedia/xvid/Makefile
==============================================================================
--- head/multimedia/xvid/Makefile	Tue Sep 18 15:10:04 2018	(r480031)
+++ head/multimedia/xvid/Makefile	Tue Sep 18 16:04:19 2018	(r480032)
@@ -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 \


More information about the svn-ports-all mailing list