[Darwin, PPC] Use Darwin9 dylib header for Rosetta builds.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 13 Dec 2019 21:06:22 +0000 (21:06 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 13 Dec 2019 21:06:22 +0000 (21:06 +0000)
On Darwin10 it's possible to make a 32b PPC build using the
'Rosetta' emulator.  However, these builds need to make use of
Darwin9 crts (for exes and dylibs).  This adds the change to
cater for dylibs.

gcc/ChangeLog:

2019-12-13  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h (DARWIN_DYLIB1_SPEC): New.

From-SVN: r279381

gcc/ChangeLog
gcc/config/rs6000/darwin.h

index 06b94444800a1ff3c58a1fdf5d7bb874dfcc9c2b..cc14a0469c4103d2a25221534b46251587903461 100644 (file)
@@ -1,3 +1,7 @@
+2019-12-13  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/darwin.h (DARWIN_DYLIB1_SPEC): New.
+
 2019-12-13  Jan Hubicka  <hubicka@ucw.cz>
 
        * lto-streamer-in.c (input_function): Add node parameter.
index d1a096f3f1c28cfb3aea0977d194b26b578691c4..8cf25b00f0f6e8fdd4322ec588d8a661b4cfafc3 100644 (file)
    %:version-compare(!> 10.4 mmacosx-version-min= crt3_2.o%s) \
   }}"
 
+/* We need to jam the dylib1 to 10.5 for 10.6 (Rosetta) use.  */
+#undef DARWIN_DYLIB1_SPEC
+#define DARWIN_DYLIB1_SPEC                                             \
+  "%:version-compare(!> 10.5 mmacosx-version-min= -ldylib1.o)          \
+   %:version-compare(>< 10.5 10.7 mmacosx-version-min= -ldylib1.10.5.o)"
+
 /* The PPC regs save/restore functions are leaves and could, conceivably
    be used by the tm destructor.  */
 #undef ENDFILE_SPEC