Define STARTFILE_PREFIX_SPEC for powerpc VxWorks < 7
authorDoug Rupp <rupp@adacore.com>
Mon, 30 Dec 2019 21:28:50 +0000 (21:28 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 30 Dec 2019 21:28:50 +0000 (21:28 +0000)
2019-12-30  Doug Rupp  <rupp@adacore.com>

* config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define.

From-SVN: r279778

gcc/ChangeLog
gcc/config/rs6000/vxworks.h

index d474caa89a64aaef076dd90c19429d83a4b4a2e1..e69810374f7757d8daa2477d901d55021b549b4f 100644 (file)
@@ -1,3 +1,7 @@
+2019-12-30  Doug Rupp  <rupp@adacore.com>
+
+       * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define.
+
 2019-12-30  Olivier Hainque  <hainque@adacore.com>
             Jerome Lambourg  <labourg@adacore.com>
 
index dd9a6a2323931d5afa6c2ddeb147bbf79fc59719..4240dfff54817788099a4fab8a06fdbd1ca5d957 100644 (file)
@@ -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