svn commit: r476189 - head/graphics/mesa-libs
Niclas Zeising
zeising at FreeBSD.org
Wed Aug 1 18:30:53 UTC 2018
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"
More information about the svn-ports-all
mailing list