This patch fixes cross compiling to x86_64-w64-mingw32 See https://github.com/Alexpux/MINGW-packages/issues/1580 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69506
My apologies if I missed something in the contributing/sending a patch guidelines. Regards, Index: libstdc++-v3/config/os/mingw32-w64/os_defines.h =================================================================== --- libstdc++-v3/config/os/mingw32-w64/os_defines.h (revision 247489) +++ libstdc++-v3/config/os/mingw32-w64/os_defines.h (working copy) @@ -76,6 +76,8 @@ #ifdef __x86_64__ #define _GLIBCXX_LLP64 1 +// See libstdc++/69506 +#define _GLIBCXX_USE_WEAK_REF 0 #endif // Enable use of GetModuleHandleEx (requires Windows XP/2003) in