From bd8efb667b8b8d63a58ac7443ec7a7d3aad8c31e Mon Sep 17 00:00:00 2001 From: Doug Rupp Date: Mon, 30 Dec 2019 21:28:50 +0000 Subject: [PATCH] Define STARTFILE_PREFIX_SPEC for powerpc VxWorks < 7 2019-12-30 Doug Rupp * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define. From-SVN: r279778 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/vxworks.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d474caa89a6..e69810374f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-12-30 Doug Rupp + + * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define. + 2019-12-30 Olivier Hainque Jerome Lambourg diff --git a/gcc/config/rs6000/vxworks.h b/gcc/config/rs6000/vxworks.h index dd9a6a23239..4240dfff548 100644 --- a/gcc/config/rs6000/vxworks.h +++ b/gcc/config/rs6000/vxworks.h @@ -43,6 +43,13 @@ along with GCC; see the file COPYING3. If not see } \ while (0) +/* vx6 library path. */ +#if !TARGET_VXWORKS7 +#undef STARTFILE_PREFIX_SPEC +#define STARTFILE_PREFIX_SPEC \ + "%{mrtp:%{!shared:%:getenv(WIND_BASE /target/lib/usr/lib/ppc/PPC32/common)}}" +#endif + /* Only big endian PPC is supported by VxWorks. */ #undef BYTES_BIG_ENDIAN #define BYTES_BIG_ENDIAN 1 -- 2.30.2