http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57212



             Bug #: 57212

           Summary: Don't use pe-coff weak support with mingw

    Classification: Unclassified

           Product: gcc

           Version: 4.7.4

            Status: UNCONFIRMED

          Severity: major

          Priority: P3

         Component: libstdc++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: ylat...@gmail.com





The issue was addressed in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52300,

but it's missing a replacement in the generated header in libstdc++.



The generated gthr.h checks for _GLIBCXX___MINGW32_GLIBCXX___ instead of

__MINGW32__



#if __GXX_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 _GLIBCXX___MINGW32_GLIBCXX___

#undef _GLIBCXX_GTHREAD_USE_WEAK

#define _GLIBCXX_GTHREAD_USE_WEAK 0

#endif

Reply via email to