* config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
libgcc for shared libraries.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90049
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
+ libgcc for shared libraries.
+
2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
#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