summaryrefslogtreecommitdiff
path: root/gcc/config/i386/mingw32.h
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-07 10:31:59 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-07 10:31:59 +0000
commit1daf16ed0885573ec41bb4eb00f25c165ba9cf26 (patch)
tree8abab63378b6af81c6c73b90c8da3e67745ef5d0 /gcc/config/i386/mingw32.h
parent2b2b3bd8d96c3193c8d9bc606ee1b5b3c9b47000 (diff)
downloadgcc-1daf16ed0885573ec41bb4eb00f25c165ba9cf26.tar.gz
2008-11-07 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r141668 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@141672 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/mingw32.h')
-rw-r--r--gcc/config/i386/mingw32.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index 25266653042..571277edb99 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -89,11 +89,15 @@ along with GCC; see the file COPYING3. If not see
%(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"