Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2018 19:07:00 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r480190 - head/graphics/libosmesa
Message-ID:  <201809201907.w8KJ70oq084253@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809201907.w8KJ70oq084253>