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/19d6cb3bae23
branches:  trunk
changeset: 317616:19d6cb3bae23
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 54f754b21bf2 -r 19d6cb3bae23 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