Message ID | CAEwic4bhLSyUK8Bc22hPsLk5qtDg2DbJ1tR-Zn7y6rYZdA0UFQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 02/20/12 12:14, Kai Tietz wrote: > 2012-02-20 Kai Tietz <ktietz@redhat.com> > > PR libstdc++/52300 > * gthr.h (GTHREAD_USE_WEAK): Define as zero for mingw. Ok. r~
On Mon, Feb 20, 2012 at 9:59 PM, Richard Henderson <rth@redhat.com> wrote: > On 02/20/12 12:14, Kai Tietz wrote: >> 2012-02-20 Kai Tietz <ktietz@redhat.com> >> >> PR libstdc++/52300 >> * gthr.h (GTHREAD_USE_WEAK): Define as zero for mingw. > > Ok. It looks like this belongs in some config/gthr-mingw.h file instead, see confit/gthr-lynx.h. Richard. > > r~
Index: gthr.h =================================================================== --- gthr.h (revision 184333) +++ gthr.h (working copy) @@ -135,6 +135,14 @@ */ #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