Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/lib/dri try to fix the clang build



details:   https://anonhg.NetBSD.org/src/rev/0031215e0167
branches:  trunk
changeset: 744152:0031215e0167
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 25 19:05:08 2020 +0000

description:
try to fix the clang build

diffstat:

 external/mit/xorg/lib/dri/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 02b7ebc81514 -r 0031215e0167 external/mit/xorg/lib/dri/Makefile
--- a/external/mit/xorg/lib/dri/Makefile        Sat Jan 25 18:59:43 2020 +0000
+++ b/external/mit/xorg/lib/dri/Makefile        Sat Jan 25 19:05:08 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2020/01/19 00:58:14 jmcneill Exp $
+# $NetBSD: Makefile,v 1.36 2020/01/25 19:05:08 christos Exp $
 
 # Link the mesa_dri_drivers mega driver.
 
@@ -421,6 +421,7 @@
 .PATH: ${X11SRCDIR.Mesa}/src/mesa/drivers/dri/${_d}
 .endfor
 
+
 LIBDPLIBS+=    expat           ${NETBSDSRCDIR}/external/mit/expat/lib/libexpat
 LIBDPLIBS+=    m               ${NETBSDSRCDIR}/lib/libm
 LIBDPLIBS+=    pthread         ${NETBSDSRCDIR}/lib/libpthread
@@ -441,6 +442,8 @@
 CPPFLAGS.isl_tiled_memcpy_sse41.c+=    -msse4.1
 .endif
 
+CFLAGS+= ${${ACTIVE_CC} == "clang":? -Wno-error=atomic-alignment :}
+
 .include "../driver.mk"
 
 .for _d in ${DRIVERS}



Home | Main Index | Thread Index | Old Index