aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-03-25 14:28:00 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-03-25 21:48:24 -0400
commitc7c9820071f8b81a64221f5cfafb3cbfeafe7916 (patch)
tree374010d949194a64f380bff9f5215be84e166308 /gdbserver
parent1859fcf17799209720ef3431464139e5098ee91b (diff)
downloadgdb-c7c9820071f8b81a64221f5cfafb3cbfeafe7916.zip
gdb-c7c9820071f8b81a64221f5cfafb3cbfeafe7916.tar.gz
gdb-c7c9820071f8b81a64221f5cfafb3cbfeafe7916.tar.bz2
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 <tom@tromey.com>
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/Makefile.in2
1 files changed, 1 insertions, 1 deletions
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