pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/MesaLib18 MesaLib18: make sure we use __built...
details: https://anonhg.NetBSD.org/pkgsrc/rev/53b23b2942bb
branches: trunk
changeset: 389879:53b23b2942bb
user: tnn <tnn%pkgsrc.org@localhost>
date: Fri Jan 11 11:30:11 2019 +0000
description:
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.
diffstat:
graphics/MesaLib18/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 86c6007789ec -r 53b23b2942bb graphics/MesaLib18/Makefile
--- a/graphics/MesaLib18/Makefile Fri Jan 11 11:19:46 2019 +0000
+++ b/graphics/MesaLib18/Makefile Fri Jan 11 11:30:11 2019 +0000
@@ -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+= -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
Home |
Main Index |
Thread Index |
Old Index