aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorzeising <zeising@FreeBSD.org>2018-08-02 02:30:52 +0800
committerzeising <zeising@FreeBSD.org>2018-08-02 02:30:52 +0800
commit006712b57d417ef48e769ff8a46a16963250318b (patch)
tree3f0e093f76432a5f273c74b853ad3a70af65e7e1 /graphics
parent481392df6193a832ae475f81b543f8ef10fb07f0 (diff)
downloadfreebsd-ports-gnome-006712b57d417ef48e769ff8a46a16963250318b.tar.gz
freebsd-ports-gnome-006712b57d417ef48e769ff8a46a16963250318b.tar.zst
freebsd-ports-gnome-006712b57d417ef48e769ff8a46a16963250318b.zip
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
Diffstat (limited to 'graphics')
-rw-r--r--graphics/mesa-libs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/mesa-libs/Makefile b/graphics/mesa-libs/Makefile
index 090565b0105a..f968a3835bd1 100644
--- a/graphics/mesa-libs/Makefile
+++ b/graphics/mesa-libs/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mesa-libs
PORTVERSION= ${MESAVERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
COMMENT= OpenGL libraries that support GLX and EGL clients
@@ -56,6 +56,11 @@ 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"
post-install: