aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/mingw32.h8
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c3de3d1..52fe4dc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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):
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index bb5fd7f..7a1ae9e 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -89,10 +89,12 @@ along with GCC; see the file COPYING3. If not see
%(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