This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch/mingw32] Re-enable multiple thread support on mingw32.
- From: "Danny Smith" <dansmister at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 6 Oct 2008 14:58:12 +1300
- Subject: [Patch/mingw32] Re-enable multiple thread support on mingw32.
Hello
Aaron's 31 August commit to enable shared libgcc for mingw32
http://gcc.gnu.org/viewcvs?view=rev&revision=139837
also disabled multiple thread support.
This reverts that part of the patch.
As committed at r140900
2008-10-06 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
lib with -mthread switch.
Index: config/i386/mingw32.h
===================================================================
--- config/i386/mingw32.h (revision 140895)
+++ config/i386/mingw32.h (working copy)
@@ -91,7 +91,7 @@
/* Include in the mingw32 libraries with libgcc */
#undef REAL_LIBGCC_SPEC
#define REAL_LIBGCC_SPEC \
- "-lmingw32 \
+ "%{mthreads:-lmingwthrd} -lmingw32 \
%{shared-libgcc:-lgcc_s} \
%{!shared-libgcc:-lgcc_eh} \
-lgcc \