Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/external/mit/xorg/lib Pull up following revision(s) (requ...
details: https://anonhg.NetBSD.org/src/rev/f31823532ddb
branches: netbsd-7
changeset: 798786:f31823532ddb
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 06 11:00:40 2015 +0000
description:
Pull up following revision(s) (requested by mrg in ticket #381):
external/mit/xorg/lib/dri/Makefile: revision 1.21,1.22,1.24-1.26
external/mit/xorg/lib/gallium/Makefile: revision 1.3-1.6
Fix yacc (.y->.c) handling.
Make it compile with clang.
Fix MKDEBUG handling.
diffstat:
external/mit/xorg/lib/dri/Makefile | 17 ++++++++++++++---
external/mit/xorg/lib/gallium/Makefile | 14 ++++++++++++--
2 files changed, 26 insertions(+), 5 deletions(-)
diffs (88 lines):
diff -r b47c2da07f21 -r f31823532ddb external/mit/xorg/lib/dri/Makefile
--- a/external/mit/xorg/lib/dri/Makefile Mon Jan 05 23:11:03 2015 +0000
+++ b/external/mit/xorg/lib/dri/Makefile Tue Jan 06 11:00:40 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18.24.1 2015/01/05 21:23:50 martin Exp $
+# $NetBSD: Makefile,v 1.18.24.2 2015/01/06 11:00:40 martin Exp $
# Link the mesa_dri_drivers mega driver.
@@ -26,6 +26,8 @@
#CPPFLAGS+= -D_NETBSD_SOURCE -DPTHREADS
# We don't actually build this on non-x86 at all, currently.
+# The following if statements are not effective since we only
+# get here for x86
.if ${MACHINE_ARCH} == "alpha"
DRIVERS= r200 radeon
.elif ${MACHINE} == "macppc" || ${MACHINE} == "ofppc"
@@ -360,7 +362,7 @@
.include "../libmesa.mk"
.include "../libglsl.mk"
-.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
SRCS+= streaming-load-memcpy.c
CPPFLAGS.streaming-load-memcpy.c+= -msse4.1
.endif
@@ -370,7 +372,7 @@
.for _d in ${DRIVERS}
SYMLINKS+= mesa_dri_drivers.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so.${SHLIB_MAJOR}
SYMLINKS+= ${_d}_dri.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so
-.if ${MKDEBUG:Uno} == "yes"
+.if ${MKDEBUG} != "no"
SYMLINKS+= mesa_dri_drivers.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHLIB_MAJOR}.debug
.endif
.endfor
@@ -393,6 +395,15 @@
.PATH: ${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/common
.include <bsd.x11.mk>
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
LIBDIR= ${X11USRLIBDIR}/modules/dri
+CWARNFLAGS.clang+= -Wno-error=initializer-overrides -Wno-error=switch \
+ -Wno-error=tautological-constant-out-of-range-compare
+
.include <bsd.lib.mk>
+.else
+.include <bsd.inc.mk>
+.endif
+# Don't re-build .c files when .y files change
+.y.c:
diff -r b47c2da07f21 -r f31823532ddb external/mit/xorg/lib/gallium/Makefile
--- a/external/mit/xorg/lib/gallium/Makefile Mon Jan 05 23:11:03 2015 +0000
+++ b/external/mit/xorg/lib/gallium/Makefile Tue Jan 06 11:00:40 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6.2.2 2015/01/05 21:23:51 martin Exp $
+# $NetBSD: Makefile,v 1.6.2.3 2015/01/06 11:00:40 martin Exp $
# Link the gallium mega driver.
@@ -463,15 +463,25 @@
-I${X11SRCDIR.MesaLib}/src/loader \
-I${X11SRCDIR.MesaLib}/src/gallium/winsys
+CWARNFLAGS.clang+= -Wno-error=constant-conversion \
+ -Wno-error=tautological-constant-out-of-range-compare \
+ -Wno-error=pointer-sign \
+ -Wno-error=switch \
+ -Wno-error=absolute-value \
+ -Wno-error=tautological-compare \
+ -Wno-error=static-in-inline
+
.include <bsd.x11.mk>
LIBDIR= ${X11USRLIBDIR}/modules/dri
.for _d in ${DRIVERS}
SYMLINKS+= gallium_dri.so ${DRIDIR}/${_d}_dri.so
SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so.${SHLIB_MAJOR}
-.if ${MKDEBUG:Uno} == "yes"
+.if ${MKDEBUG} != "no"
SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHLIB_MAJOR}.debug
.endif
.endfor
.include <bsd.lib.mk>
+# Don't regenerate c files
+.y.c:
- Prev by Date:
[src/netbsd-7]: src/doc Tickets 373, 374, 375, 377, 378, 380 and 381
- Next by Date:
[src/netbsd-7]: src/doc Update entry for #381
- Previous by Thread:
[src/netbsd-7]: src/doc Tickets 373, 374, 375, 377, 378, 380 and 381
- Next by Thread:
[src/netbsd-7]: src/doc Update entry for #381
- Indexes:
Home |
Main Index |
Thread Index |
Old Index