git: c997d3a7cd16 - main - graphics/libglvnd: disable TLS on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 25 Aug 2023 09:02:44 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c997d3a7cd168df0b22ef0cb8c70ad641d09d97a

commit c997d3a7cd168df0b22ef0cb8c70ad641d09d97a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-25 09:02:32 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-25 09:02:32 +0000

    graphics/libglvnd: disable TLS on powerpc
    
    libGLdispatch.so.0`___lldb_unnamed_symbol96:
    ->  0x51346dac <+4>:  .long  0x0005e290                ; unknown opcode
---
 graphics/libglvnd/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/graphics/libglvnd/Makefile b/graphics/libglvnd/Makefile
index df6266bb6a3a..3637abfacfad 100644
--- a/graphics/libglvnd/Makefile
+++ b/graphics/libglvnd/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libglvnd
 DISTVERSION=	1.6.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 
 MAINTAINER=	x11@FreeBSD.org
@@ -32,6 +32,10 @@ X11_MESON_ENABLED=	x11 glx
 MESON_ARGS+=	-Dasm=disabled
 .endif
 
+.if ${ARCH} == powerpc
+MESON_ARGS+=	-Dtls=false
+.endif
+
 # Lots of software expects gl.pc even when it can build with EGL only
 post-install-X11-off:
 	${LN} -s opengl.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/gl.pc