rationalize libgcc stub & static lib linkage on Darwin 9 & 10.

* config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for 
	Darwin10.  Do not link libgcc.a for Darwin >= 9.

From-SVN: r163267
This commit is contained in:
Iain Sandoe 2010-08-15 19:15:55 +00:00
parent 09ccff9f3d
commit 5fc265c14f
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
* config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
Darwin10. Do not link libgcc.a for Darwin >= 9.
2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
* doc/invoke.texi (Warning Options): Fix terminology and markup

View File

@ -406,15 +406,15 @@ extern GTY(()) int darwin_ms_struct;
"%{static-libgcc|static: -lgcc_eh -lgcc; \
shared-libgcc|fexceptions|fgnu-runtime: \
%:version-compare(!> 10.5 mmacosx-version-min= -lgcc_s.10.4) \
%:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5) \
%:version-compare(>< 10.5 10.6 mmacosx-version-min= -lgcc_s.10.5) \
%:version-compare(!> 10.5 mmacosx-version-min= -lgcc_ext.10.4) \
%:version-compare(>= 10.5 mmacosx-version-min= -lgcc_ext.10.5) \
-lgcc; \
%:version-compare(< 10.5 mmacosx-version-min= -lgcc) ; \
:%:version-compare(>< 10.3.9 10.5 mmacosx-version-min= -lgcc_s.10.4) \
%:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5) \
%:version-compare(>< 10.5 10.6 mmacosx-version-min= -lgcc_s.10.5) \
%:version-compare(!> 10.5 mmacosx-version-min= -lgcc_ext.10.4) \
%:version-compare(>= 10.5 mmacosx-version-min= -lgcc_ext.10.5) \
-lgcc}"
%:version-compare(< 10.5 mmacosx-version-min= -lgcc) }"
/* We specify crt0.o as -lcrt0.o so that ld will search the library path.