This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix cross compiling to x86_64-w64-mingw32
- From: Hugo Beauzée-Luyssen <hugo at beauzee dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 May 2017 14:11:08 +0200
- Subject: [PATCH] Fix cross compiling to x86_64-w64-mingw32
- Authentication-results: sourceware.org; auth=none
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