OSDN Git Service

* config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Oct 2008 01:52:27 +0000 (01:52 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Oct 2008 01:52:27 +0000 (01:52 +0000)
lib with -mthread switch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140900 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/mingw32.h

index c58932c..7a9752f 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
+       lib with -mthread switch.
+
 2008-10-05  Dodji Seketeli  <dodji@redhat.com>
 
        PR c++/37410
index 7a1ae9e..b4137ea 100644 (file)
@@ -91,7 +91,7 @@ along with GCC; see the file COPYING3.  If not see
 /* 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 \