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 Allow clang to generate SPARCv8+ assem...
details: https://anonhg.NetBSD.org/src/rev/94f4bdfce158
branches: trunk
changeset: 347977:94f4bdfce158
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 27 19:18:42 2016 +0000
description:
Allow clang to generate SPARCv8+ assembly for now.
diffstat:
external/mit/xorg/lib/fontconfig/src/Makefile | 11 ++++++++++-
external/mit/xorg/lib/gallium/Makefile | 6 +++++-
external/mit/xorg/lib/libxshmfence/Makefile | 6 +++++-
3 files changed, 20 insertions(+), 3 deletions(-)
diffs (63 lines):
diff -r 14e882538f6d -r 94f4bdfce158 external/mit/xorg/lib/fontconfig/src/Makefile
--- a/external/mit/xorg/lib/fontconfig/src/Makefile Tue Sep 27 19:15:09 2016 +0000
+++ b/external/mit/xorg/lib/fontconfig/src/Makefile Tue Sep 27 19:18:42 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2016/05/31 02:35:49 pgoyette Exp $
+# $NetBSD: Makefile,v 1.19 2016/09/27 19:18:42 joerg Exp $
.include <bsd.own.mk>
@@ -135,5 +135,14 @@
CWARNFLAGS.clang+= -Wno-pointer-sign -Wno-switch
+.if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc"
+COPTS.fccache.c+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+COPTS.fccfg.c+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+COPTS.fccharset.c+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+COPTS.fcobjs.c+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+COPTS.fcpat.c+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+COPTS.fcstr.c+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+.endif
+
.include <bsd.x11.mk>
.include <bsd.lib.mk>
diff -r 14e882538f6d -r 94f4bdfce158 external/mit/xorg/lib/gallium/Makefile
--- a/external/mit/xorg/lib/gallium/Makefile Tue Sep 27 19:15:09 2016 +0000
+++ b/external/mit/xorg/lib/gallium/Makefile Tue Sep 27 19:18:42 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2016/08/16 21:05:14 mrg Exp $
+# $NetBSD: Makefile,v 1.16 2016/09/27 19:18:42 joerg Exp $
# Link the gallium mega driver.
@@ -632,6 +632,10 @@
.endif
.endfor
+.if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc"
+COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+.endif
+
.include <bsd.lib.mk>
# Don't regenerate c files
.y.c:
diff -r 14e882538f6d -r 94f4bdfce158 external/mit/xorg/lib/libxshmfence/Makefile
--- a/external/mit/xorg/lib/libxshmfence/Makefile Tue Sep 27 19:15:09 2016 +0000
+++ b/external/mit/xorg/lib/libxshmfence/Makefile Tue Sep 27 19:18:42 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/08/31 14:29:13 christos Exp $
+# $NetBSD: Makefile,v 1.5 2016/09/27 19:18:42 joerg Exp $
.include <bsd.own.mk>
@@ -25,5 +25,9 @@
COPTS.xshmfence_semaphore.c += -Wno-stack-protector
+.if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc"
+COPTS.xshmfence_semaphore.c+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :}
+.endif
+
.include <bsd.x11.mk>
.include <bsd.lib.mk>
Home |
Main Index |
Thread Index |
Old Index