summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2019-01-11 11:30:11 +0000
committertnn <tnn@pkgsrc.org>2019-01-11 11:30:11 +0000
commit57a2cc476a53c30f021bf1b77066dd5151905a5b (patch)
tree3e336b9bbf89256bc37b4bf435487be5750f038f
parent5457c281498acd4e99e21f1a28bdc8e5aaa35ede (diff)
downloadpkgsrc-57a2cc476a53c30f021bf1b77066dd5151905a5b.tar.gz
MesaLib18: make sure we use __builtin_alloca on NetBSD
Otherwise Xorg crashes in the radeon driver when mesa is built with clang. Better fix welcome. Bump PKGREVISION.
-rw-r--r--graphics/MesaLib18/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/MesaLib18/Makefile b/graphics/MesaLib18/Makefile
index 5650ff93c26..ad794ec8470 100644
--- a/graphics/MesaLib18/Makefile
+++ b/graphics/MesaLib18/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2019/01/10 22:30:10 tnn Exp $
+# $NetBSD: Makefile,v 1.9 2019/01/11 11:30:11 tnn Exp $
DISTNAME= mesa-18.3.1
+PKGREVISION= 1
PKGNAME= ${DISTNAME:S/mesa/MesaLib/}
CATEGORIES= graphics x11
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/
@@ -81,6 +82,10 @@ CPPFLAGS+= -Dexp2\(x\)=exp\(\(x\)\*M_LN2\)
CPPFLAGS+= -Dexp2f\(x\)=expf\(\(x\)\*M_LN2\)
.endif
+# Work around Xorg segfaulting in radeon driver due to wrong alloca being used
+CFLAGS.NetBSD+= -Dalloca=__builtin_alloca
+CXXFLAGS.NetBSD+= -Dalloca=__builtin_alloca
+
pre-configure:
cd ${WRKSRC} && autoreconf -vif
# Manual patch for FDO bug 90311. Don't apply if not on Darwin as there could