diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-12-13 21:06:22 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-12-13 21:06:22 +0000 |
commit | a7c70129b9cb1cc9300400dc4f4adc639f0ba9c3 (patch) | |
tree | db86a0ec70d7521bea7a5e444d6709ed214e5e90 | |
parent | c926fd82bbd336b317266d43b9fa67a83397b06b (diff) | |
download | gcc-a7c70129b9cb1cc9300400dc4f4adc639f0ba9c3.zip gcc-a7c70129b9cb1cc9300400dc4f4adc639f0ba9c3.tar.gz gcc-a7c70129b9cb1cc9300400dc4f4adc639f0ba9c3.tar.bz2 |
[Darwin, PPC] Use Darwin9 dylib header for Rosetta builds.
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
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/darwin.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06b9444..cc14a04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index d1a096f..8cf25b0 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -173,6 +173,12 @@ %: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 |