From c7c9820071f8b81a64221f5cfafb3cbfeafe7916 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 25 Mar 2024 14:28:00 -0400 Subject: gdbserver/Makefile.in: add missing `-x c++` When building with Clang, I get: CXX nat/x86-linux-tdesc-ipa.o clang++: error: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Werror,-Wdeprecated] Fix that by adding the missing `-x c++` in the rule building `gdb/nat/*.c` files for the in-process agent. Change-Id: Ie53e4b9a8b57bef9669397fdfaf21617107c7180 Approved-By: Tom Tromey --- gdbserver/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in index bd6f68e..5506701 100644 --- a/gdbserver/Makefile.in +++ b/gdbserver/Makefile.in @@ -520,7 +520,7 @@ gdbsupport/%-ipa.o: ../gdbsupport/%.cc $(POSTCOMPILE) nat/%-ipa.o: ../gdb/nat/%.c - $(IPAGENT_COMPILE) $< + $(IPAGENT_COMPILE) -x c++ $< $(POSTCOMPILE) %-ipa.o: ../gdb/%.c -- cgit v1.1