diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-12 12:57:02 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-12 12:58:54 -0400 |
commit | 5629cf2b98a92925434aeb234d22ad61c5c4bc7e (patch) | |
tree | 2cb6446b3292c51c59c1ec4472e89697a1e6c185 /sim/ppc/defs.h | |
parent | 5ea45474021e98cbb325534b328e391593119cb0 (diff) | |
download | gdb-5629cf2b98a92925434aeb234d22ad61c5c4bc7e.zip gdb-5629cf2b98a92925434aeb234d22ad61c5c4bc7e.tar.gz gdb-5629cf2b98a92925434aeb234d22ad61c5c4bc7e.tar.bz2 |
sim: ppc: unify env settings too
The ppc port doesn't share a lot of the common logic, but there are
a few bits that bleed across. Have it use the common configure for
environment settings too to avoid duplicate define errors after the
recent unification with the other ports.
Diffstat (limited to 'sim/ppc/defs.h')
-rw-r--r-- | sim/ppc/defs.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sim/ppc/defs.h b/sim/ppc/defs.h index 66e76d2..9a89844 100644 --- a/sim/ppc/defs.h +++ b/sim/ppc/defs.h @@ -20,7 +20,19 @@ #ifndef DEFS_H #define DEFS_H -/* Include sim's various configure tests. */ +/* Include arch-specific sim's various configure tests. */ #include "config.h" +/* Reset macros that our config.h will provide. */ +#undef PACKAGE +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_URL +#undef PACKAGE_VERSION + +/* Include common sim's various configure tests. */ +#include "../config.h" + #endif |