diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2024-07-03 23:05:06 +0100 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-12-17 10:39:36 -0700 |
commit | d9b8b9575f3bdd18d651e99df1ed02aa30992a31 (patch) | |
tree | c1345e0431bc7ef070f99f43b4dfea994f26ee52 /gdb/config | |
parent | 077540ce1206a457c5e5e9ff08e829a96735c4a1 (diff) | |
download | gdb-d9b8b9575f3bdd18d651e99df1ed02aa30992a31.zip gdb-d9b8b9575f3bdd18d651e99df1ed02aa30992a31.tar.gz gdb-d9b8b9575f3bdd18d651e99df1ed02aa30992a31.tar.bz2 |
Hurd: do not include defs.h when compiling MiG stubs since they are compiled as C files
Otherwise, GDB will fail to compile for Hurd.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/i386gnu.mn | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/config/i386/i386gnu.mn b/gdb/config/i386/i386gnu.mn index b7414e3..24c58b0 100644 --- a/gdb/config/i386/i386gnu.mn +++ b/gdb/config/i386/i386gnu.mn @@ -21,7 +21,9 @@ MIGCOM = $(MIG) -cc cat - /dev/null | $(MIGCOM) -sheader /dev/null -server /dev/null -user $*_U.c -header $*_U.h # MIG stubs are not yet ready for C++ compilation. -%_S.o %_U.o : COMPILE.post += -x c -include gnu-nat-mig.h +%_S.o %_U.o : COMPILE.post += -x c +# Do not include defs.h since it requires C++. Rather include our own gnu-nat-mig.h +%_S.o %_U.o : GDB_INCLUDED_HEADER = -include gnu-nat-mig.h NAT_GENERATED_FILES = notify_S.h notify_S.c \ process_reply_S.h process_reply_S.c \ |