PR libstdc++/52300
* gthr.h (GTHREAD_USE_WEAK): Define as zero for mingw.
From-SVN: r184408
+2012-02-20 Kai Tietz <ktietz@redhat.com>
+
+ PR libstdc++/52300
+ * gthr.h (GTHREAD_USE_WEAK): Define as zero for mingw.
+
2012-02-16 Jakub Jelinek <jakub@redhat.com>
PR debug/52260
/* Include GTHREAD_FILE if one is defined. */
#elif defined(HAVE_GTHR_DEFAULT)
#if SUPPORTS_WEAK
+/* The pe-coff weak support isn't fully compatible to ELF's weak.
+ For static libraries it might would work, but as we need to deal
+ with shared versions too, we disable it for mingw-targets. */
+#ifdef __MINGW32__
+#undef GTHREAD_USE_WEAK
+#define GTHREAD_USE_WEAK 0
+#endif
+
#ifndef GTHREAD_USE_WEAK
#define GTHREAD_USE_WEAK 1
#endif