From: Andrew Pinski Date: Thu, 4 Nov 2004 02:30:26 +0000 (+0000) Subject: darwin.h (REAL_LIBGCC_SPEC): Define to use shared libgcc for shared libraries. X-Git-Tag: releases/gcc-4.0.0~3446 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b336747402980567163bc6d61556a8d34c0efd7b;p=thirdparty%2Fgcc.git darwin.h (REAL_LIBGCC_SPEC): Define to use shared libgcc for shared libraries. 2004-11-03 Andrew Pinski * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared libgcc for shared libraries. From-SVN: r90049 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca92f93a793b..1f1d3dbffb4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-03 Andrew Pinski + + * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared + libgcc for shared libraries. + 2004-11-03 Ulrich Weigand * config/s390/s390-protos.h (s390_split_access_reg): Add prototype. diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 83aa2ddb009f..c1d6b8f07ff2 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -312,6 +312,13 @@ extern const char *darwin_fix_and_continue_switch; #define LIB_SPEC "%{!static:-lSystem}" #endif +/* -dynamiclib implies -shared-libgcc just like -shared would on linux. */ +#define REAL_LIBGCC_SPEC \ + "%{static|static-libgcc:-lgcc -lgcc_eh}\ + %{!static:%{!static-libgcc:\ + %{!Zdynamiclib:%{!shared-libgcc:-lgcc -lgcc_eh}\ + %{shared-libgcc:-lgcc_s -lgcc} } %{Zdynamiclib:-lgcc_s}}}" + /* We specify crt0.o as -lcrt0.o so that ld will search the library path. */ #undef STARTFILE_SPEC