This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]