2008-11-03 Mikael Pettersson <mikpe@it.uu.se>
PR target/37989
* config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
From-SVN: r141575
+2008-11-03 Mikael Pettersson <mikpe@it.uu.se>
+
+ PR target/37989
+ * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
+ or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
+
2008-11-03 Catherine Moore <clm@codesourcery.com>
* config/mips.c (mips_conditional_register_usage): Handle the
%(shared_libgcc_undefs)"
/* Include in the mingw32 libraries with libgcc */
+#ifdef ENABLE_SHARED_LIBGCC
+#define SHARED_LIBGCC_SPEC "%{shared-libgcc:-lgcc_s} %{!shared-libgcc:-lgcc_eh}"
+#else
+#define SHARED_LIBGCC_SPEC /*empty*/
+#endif
#undef REAL_LIBGCC_SPEC
#define REAL_LIBGCC_SPEC \
"%{mthreads:-lmingwthrd} -lmingw32 \
- %{shared-libgcc:-lgcc_s} \
- %{!shared-libgcc:-lgcc_eh} \
+ "SHARED_LIBGCC_SPEC" \
-lgcc \
-lmoldname -lmingwex -lmsvcrt"