Module Name: src
Committed By: riastradh
Date: Sun Jun 20 12:29:58 UTC 2021
Modified Files:
src/external/gpl3/gdb/bin/gdbserver: Makefile
Log Message:
gdbserver(1): Work around clang build failure.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/bin/gdbserver/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/bin/gdbserver/Makefile
diff -u src/external/gpl3/gdb/bin/gdbserver/Makefile:1.3 src/external/gpl3/gdb/bin/gdbserver/Makefile:1.4
--- src/external/gpl3/gdb/bin/gdbserver/Makefile:1.3 Thu Sep 24 14:53:35 2020
+++ src/external/gpl3/gdb/bin/gdbserver/Makefile Sun Jun 20 12:29:58 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2020/09/24 14:53:35 christos Exp $
+# $NetBSD: Makefile,v 1.4 2021/06/20 12:29:58 riastradh Exp $
NOCTF=
NOMAN=
@@ -30,6 +30,9 @@ CPPFLAGS+= -I${.CURDIR} \
-I${DIST}/include \
${GCPPFLAGS:M-D*}
+# /usr/src/current/external/gpl3/gdb/bin/gdbserver/../../dist/gdb/nat/fork-inferior.c:497:15: error: 6 enumeration values not handled in switch: 'TARGET_WAITKIND_VFORK_DONE', 'TARGET_WAITKIND_IGNORE', 'TARGET_WAITKIND_NO_HISTORY'... [-Werror,-Wswitch]
+CXXFLAGS+= ${${ACTIVE_CC} == "clang":? -Wno-error=switch : }
+
.include "../../Makefile.inc"
.include <bsd.info.mk>