diff options
author | Kai Tietz <ktietz@redhat.com> | 2012-02-20 22:22:07 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2012-02-20 22:22:07 +0100 |
commit | d74703744533a360a30ed5d62a6174072fb3bdf9 (patch) | |
tree | c997d4cf62ddb657cffe8dc82cde004b0c3be86e /libgcc/gthr.h | |
parent | 0c0c63986e640554a88ce665f07cafa56182e1c4 (diff) | |
download | gcc-d74703744533a360a30ed5d62a6174072fb3bdf9.zip gcc-d74703744533a360a30ed5d62a6174072fb3bdf9.tar.gz gcc-d74703744533a360a30ed5d62a6174072fb3bdf9.tar.bz2 |
re PR libstdc++/52300 (Gthreads functions linking error at dynamic linking with libstdc++ when using MinGW.)
PR libstdc++/52300
* gthr.h (GTHREAD_USE_WEAK): Define as zero for mingw.
From-SVN: r184406
Diffstat (limited to 'libgcc/gthr.h')
-rw-r--r-- | libgcc/gthr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgcc/gthr.h b/libgcc/gthr.h index 607c26e..03a3ee1 100644 --- a/libgcc/gthr.h +++ b/libgcc/gthr.h @@ -135,6 +135,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see */ #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 |