darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when Darwin >= 10.

2012-05-29  Iain Sandoe  <iains@gcc.gnu.org>

	    * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
	    Darwin >= 10.
	    (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
	    (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.

From-SVN: r187992
This commit is contained in:
Jack Howarth 2012-05-29 23:20:33 +00:00 committed by Mike Stump
parent 2df2ce3f78
commit 3127f13395
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2012-05-29 Iain Sandoe <iains@gcc.gnu.org>
* config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
Darwin >= 10.
(DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
(DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
PR target/51340

View File

@ -356,7 +356,9 @@ extern GTY(()) int darwin_ms_struct;
%{!Zbundle:%{pg:%{static:-lgcrt0.o} \
%{!static:%{object:-lgcrt0.o} \
%{!object:%{preload:-lgcrt0.o} \
%{!preload:-lgcrt1.o %(darwin_crt2)}}}} \
%{!preload:-lgcrt1.o \
%:version-compare(>= 10.8 mmacosx-version-min= -no_new_main) \
%(darwin_crt2)}}}} \
%{!pg:%{static:-lcrt0.o} \
%{!static:%{object:-lcrt0.o} \
%{!object:%{preload:-lcrt0.o} \
@ -379,7 +381,7 @@ extern GTY(()) int darwin_ms_struct;
#define DARWIN_CRT1_SPEC \
"%:version-compare(!> 10.5 mmacosx-version-min= -lcrt1.o) \
%:version-compare(>< 10.5 10.6 mmacosx-version-min= -lcrt1.10.5.o) \
%:version-compare(>= 10.6 mmacosx-version-min= -lcrt1.10.6.o) \
%:version-compare(>< 10.6 10.8 mmacosx-version-min= -lcrt1.10.6.o) \
%{fgnu-tm: -lcrttms.o}"
/* Default Darwin ASM_SPEC, very simple. */