diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-15 04:55:12 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-15 04:55:12 +0000 |
commit | bbdc1b6b44baf7bdcb5d1736b6fdf97c70f0cd2e (patch) | |
tree | 292390e5e3676cfcd404ea933f97d2045a1faea8 /gcc/config/rs6000/darwin.h | |
parent | 3b855d096ce33a0009269c777e5c42aaff70a5e0 (diff) | |
download | gcc-bbdc1b6b44baf7bdcb5d1736b6fdf97c70f0cd2e.tar.gz |
* gcc.c (version_compare_spec_function): Use fatal() rather than
abort().
* config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
(SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
* config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
as empty.
* config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
link in crt2.o.
* config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
on -mmacosx-version-min setting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106935 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/darwin.h')
-rw-r--r-- | gcc/config/rs6000/darwin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 0d633efed41..d1635ff38f0 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -124,9 +124,14 @@ do { \ mcpu=G5:ppc970; \ :ppc}}" +/* crt2.o is at least partially required for 10.3.x and earlier. */ +#define DARWIN_CRT2_SPEC \ + "%{!m64:%:version-compare(!> 10.4 mmacosx-version-min= crt2.o%s)}" + #undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ { "darwin_arch", "%{m64:ppc64;:ppc}" }, \ + { "darwin_crt2", DARWIN_CRT2_SPEC }, \ { "darwin_subarch", DARWIN_SUBARCH_SPEC }, /* Output a .machine directive. */ |