Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2018 18:30:52 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r476189 - head/graphics/mesa-libs
Message-ID:  <201808011830.w71IUq24015269@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Wed Aug  1 18:30:52 2018
New Revision: 476189
URL: https://svnweb.freebsd.org/changeset/ports/476189

Log:
  Fix build with lld linker on i386
  
  Fix the build with the lld linker on i386.  This is done by adding an option
  to the linker to allow relocations in read-only segments, since there are
  some assembler code that's not PIC.
  the gnu ld linker does this by default.
  
  PR:		230239
  Submitted by:	emaste

Modified:
  head/graphics/mesa-libs/Makefile

Modified: head/graphics/mesa-libs/Makefile
==============================================================================
--- head/graphics/mesa-libs/Makefile	Wed Aug  1 18:13:39 2018	(r476188)
+++ head/graphics/mesa-libs/Makefile	Wed Aug  1 18:30:52 2018	(r476189)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mesa-libs
 PORTVERSION=	${MESAVERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 
 COMMENT=	OpenGL libraries that support GLX and EGL clients
@@ -54,6 +54,11 @@ MESA_INSTALL_WRKSRC+=	src/gbm src/glx
 .if "${MESA_LLVM_VER}" != ""
 MESA_BUILD_WRKSRC+=	src/egl
 MESA_INSTALL_WRKSRC+=	src/egl
+.endif
+
+.if ${ARCH} == "i386"
+# PR230239 Fix the build for i386 when WITH_LLD_IS_LD is set
+LDFLAGS+=-Wl,-z,notext
 .endif
 
 .include "${MASTERDIR}/Makefile.targets"



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