PR target/37528
* config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
(REAL_LIBGCC_SPEC): New. Always include -lgcc.
From-SVN: r140830
+2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
+
+ PR target/37528
+ * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
+ (REAL_LIBGCC_SPEC): New. Always include -lgcc.
+
2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
%(shared_libgcc_undefs)"
/* Include in the mingw32 libraries with libgcc */
-#undef LIBGCC_SPEC
-#define LIBGCC_SPEC \
+#undef REAL_LIBGCC_SPEC
+#define REAL_LIBGCC_SPEC \
"-lmingw32 \
- %{shared-libgcc:-lgcc_s} -lgcc \
+ %{shared-libgcc:-lgcc_s} \
+ %{!shared-libgcc:-lgcc_eh} \
+ -lgcc \
-lmoldname -lmingwex -lmsvcrt"
#undef STARTFILE_SPEC