This patch removes the #undef issued for LIB_SPEC and LINK_SPEC in vx-common.h, which all the ports do on their own and which impairs the bi-arch’d ppc*-vx7r2 targets, relying on linux64 definitions.
Tested together with the previous changes posted for the newly introduced powerpc ports. Committing to mainline shortly. Olivier 2020-10-21 Douglas Rupp <r...@adacore.com> gcc/ * config/vx-common.h (LINK_SPEC, LIB_SPEC): Remove #undef.
--- a/gcc/config/vx-common.h +++ b/gcc/config/vx-common.h @@ -23,8 +23,6 @@ along with GCC; see the file COPYING3. If not see /* Most of these will probably be overridden by subsequent headers. We undefine them here just in case, and define VXWORKS_ versions of each, to be used in port-specific vxworks.h. */ -#undef LIB_SPEC -#undef LINK_SPEC #undef LIBGCC_SPEC #define LIBGCC_SPEC VXWORKS_LIBGCC_SPEC #undef STARTFILE_SPEC