summaryrefslogtreecommitdiffstats
path: root/0026-g++-gnu-source.patch
blob: 2e11a66ce3b3278b2529a394600e89fae444b2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- origsrc/gcc-5.3.0/config/mt-cygwin	1969-12-31 18:00:00.000000000 -0600
+++ src/gcc-5.3.0/config/mt-cygwin	2016-02-04 01:48:00.058340400 -0600
@@ -0,0 +1 @@
+CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE
--- origsrc/gcc-5.3.0/configure.ac	2015-05-03 12:29:57.000000000 -0500
+++ src/gcc-5.3.0/configure.ac	2016-02-03 17:34:52.238164400 -0600
@@ -2519,6 +2519,9 @@ case "${target}" in
   nios2-*-elf*)
     target_makefile_frag="config/mt-nios2-elf"
     ;;
+  *-*-cygwin*)
+    target_makefile_frag="config/mt-cygwin"
+    ;;
   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
     target_makefile_frag="config/mt-gnu"
     ;;
--- origsrc/gcc-5.3.0/configure	2015-05-03 12:29:57.000000000 -0500
+++ src/gcc-5.3.0/configure	2016-02-04 02:06:24.917639700 -0600
@@ -6873,6 +6873,9 @@ case "${target}" in
   nios2-*-elf*)
     target_makefile_frag="config/mt-nios2-elf"
     ;;
+  *-*-cygwin*)
+    target_makefile_frag="config/mt-cygwin"
+    ;;
   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
     target_makefile_frag="config/mt-gnu"
     ;;
--- origsrc/gcc-5.3.0/gcc/config/i386/cygwin.h	2016-02-03 16:49:24.261755400 -0600
+++ src/gcc-5.3.0/gcc/config/i386/cygwin.h	2016-02-04 02:04:29.163940800 -0600
@@ -105,6 +105,9 @@ along with GCC; see the file COPYING3.
   --wrap _ZdlPvRKSt9nothrow_t \
   --wrap _ZdaPvRKSt9nothrow_t \
 "
+/* The GNU C++ standard library requires that these macros be defined.  */
+#undef CPLUSPLUS_CPP_SPEC
+#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
 
 #if defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)