Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gdb When forcing C++ mode for C sources, clang...



details:   https://anonhg.NetBSD.org/src/rev/9c2543f638ed
branches:  trunk
changeset: 358025:9c2543f638ed
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Dec 08 14:19:47 2017 +0000

description:
When forcing C++ mode for C sources, clang requires -Wno-deprecated.
Fix build with LLVM.

Thanks @a_rin for report on Twitter.

diffstat:

 external/gpl3/gdb/bin/gdb/Makefile    |  6 ++++--
 external/gpl3/gdb/bin/gdbtui/Makefile |  5 ++++-
 external/gpl3/gdb/lib/libgdb/Makefile |  5 ++++-
 3 files changed, 12 insertions(+), 4 deletions(-)

diffs (58 lines):

diff -r 2123eaf03778 -r 9c2543f638ed external/gpl3/gdb/bin/gdb/Makefile
--- a/external/gpl3/gdb/bin/gdb/Makefile        Fri Dec 08 14:10:29 2017 +0000
+++ b/external/gpl3/gdb/bin/gdb/Makefile        Fri Dec 08 14:19:47 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.13 2017/11/30 15:26:54 christos Exp $
+#      $NetBSD: Makefile,v 1.14 2017/12/08 14:19:47 rin Exp $
 
 NOCTF=
 .include <bsd.own.mk>
@@ -92,7 +92,9 @@
 HOST_CC:=       ${HOST_CXX}
 CC:=            ${CXX}
 CFLAGS:=        ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
-
+.if ${ACTIVE_CC} == "clang"
+CFLAGS+=       -Wno-deprecated
+.endif
 
 .PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
     ${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${GDB_MACHINE_ARCH}
diff -r 2123eaf03778 -r 9c2543f638ed external/gpl3/gdb/bin/gdbtui/Makefile
--- a/external/gpl3/gdb/bin/gdbtui/Makefile     Fri Dec 08 14:10:29 2017 +0000
+++ b/external/gpl3/gdb/bin/gdbtui/Makefile     Fri Dec 08 14:19:47 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.10 2017/11/30 15:26:54 christos Exp $
+#      $NetBSD: Makefile,v 1.11 2017/12/08 14:19:47 rin Exp $
 NOCTF=
 .include "../Makefile.inc"
 
@@ -29,6 +29,9 @@
 HOST_CC:=       ${HOST_CXX}
 CC:=            ${CXX}
 CFLAGS:=        ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
+.if ${ACTIVE_CC} == "clang"
+CFLAGS+=       -Wno-deprecated
+.endif
 
 LIBOPCODESDIR!=   cd ${.CURDIR}/../../lib/libopcodes   && ${PRINTOBJDIR}
 LIBBFDDIR!=       cd ${.CURDIR}/../../lib/libbfd       && ${PRINTOBJDIR}
diff -r 2123eaf03778 -r 9c2543f638ed external/gpl3/gdb/lib/libgdb/Makefile
--- a/external/gpl3/gdb/lib/libgdb/Makefile     Fri Dec 08 14:10:29 2017 +0000
+++ b/external/gpl3/gdb/lib/libgdb/Makefile     Fri Dec 08 14:19:47 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.17 2017/12/08 14:10:29 rin Exp $
+#      $NetBSD: Makefile,v 1.18 2017/12/08 14:19:47 rin Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -58,6 +58,9 @@
 HOST_CC:=       ${HOST_CXX}
 CC:=            ${CXX}
 CFLAGS:=        ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
+.if ${ACTIVE_CC} == "clang"
+CFLAGS+=       -Wno-deprecated
+.endif
 
 .PATH: ${DIST}/gdb ${DIST}/gdb/arch ${DIST}/gdb/mi ${DIST}/gdb/cli  \
     ${DIST}/gdb/tui ${DIST}/gdb/python ${DIST}/gdb/common ${DIST}/gdb/target \



Home | Main Index | Thread Index | Old Index