svn commit: r480190 - head/graphics/libosmesa

Ed Maste emaste at FreeBSD.org
Thu Sep 20 19:07:01 UTC 2018


Author: emaste (src committer)
Date: Thu Sep 20 19:07:00 2018
New Revision: 480190
URL: https://svnweb.freebsd.org/changeset/ports/480190

Log:
  graphics/libosmesa: add -znotext to LDFLAGS on i386, for lld
  
  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:	portmgr (lld blanket)
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/graphics/libosmesa/Makefile

Modified: head/graphics/libosmesa/Makefile
==============================================================================
--- head/graphics/libosmesa/Makefile	Thu Sep 20 18:49:51 2018	(r480189)
+++ head/graphics/libosmesa/Makefile	Thu Sep 20 19:07:00 2018	(r480190)
@@ -16,6 +16,7 @@ USE_XORG=	xorgproto
 CONFIGURE_ARGS+=	--disable-dri --disable-egl --disable-gbm \
 			--disable-gles2 --with-gallium-drivers=swrast
 MESA_BUILD_WRKSRC=	src/util src/compiler src/mapi src/mesa
+LDFLAGS_i386=		-Wl,-znotext
 
 .if "${MESA_LLVM_VER}" != ""
 CONFIGURE_ARGS+=	--enable-osmesa-gallium


More information about the svn-ports-all mailing list