public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix cross compiling to x86_64-w64-mingw32
@ 2017-05-02 12:12 Hugo Beauzée-Luyssen
  2017-05-02 15:00 ` JonY
  0 siblings, 1 reply; 2+ messages in thread
From: Hugo Beauzée-Luyssen @ 2017-05-02 12:12 UTC (permalink / raw)
  To: gcc-patches

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix cross compiling to x86_64-w64-mingw32
  2017-05-02 12:12 [PATCH] Fix cross compiling to x86_64-w64-mingw32 Hugo Beauzée-Luyssen
@ 2017-05-02 15:00 ` JonY
  0 siblings, 0 replies; 2+ messages in thread
From: JonY @ 2017-05-02 15:00 UTC (permalink / raw)
  To: gcc-patches


[-- Attachment #1.1: Type: text/plain, Size: 890 bytes --]

On 05/02/2017 12:11 PM, Hugo Beauzée-Luyssen wrote:
> 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
> 

Looks good, go ahead and apply.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-02 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-02 12:12 [PATCH] Fix cross compiling to x86_64-w64-mingw32 Hugo Beauzée-Luyssen
2017-05-02 15:00 ` JonY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).