summaryrefslogtreecommitdiff
path: root/patches/gcc/4.8.5/130-pr43538.patch
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-03-15 12:02:03 (GMT)
committerMax Filippov <jcmvbkbc@gmail.com>2016-03-15 14:14:16 (GMT)
commit8a65d08b275837052c497fc5db033b32f3fd5342 (patch)
treef06fda66f03a2861a10890d87f6e398b4bcf273d /patches/gcc/4.8.5/130-pr43538.patch
parentd7339f50a2e83a5a267551c2b798f0f53a545f08 (diff)
gcc: backport fixes that preserve FLAGS_FOR_TARGET
CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET are rewritten in gcc-4.8.x and gcc-4.9.x, so libstdc++ does not get any flags passed to gcc configure. Backport fixes for config/mt-gnu and config/mt-ospace that preserve these flags. With these fixes libstdc++ gets built with flags specified in CT_TARGET_CFLAGS. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'patches/gcc/4.8.5/130-pr43538.patch')
-rw-r--r--patches/gcc/4.8.5/130-pr43538.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/gcc/4.8.5/130-pr43538.patch b/patches/gcc/4.8.5/130-pr43538.patch
new file mode 100644
index 0000000..19e57bb
--- /dev/null
+++ b/patches/gcc/4.8.5/130-pr43538.patch
@@ -0,0 +1,25 @@
+From c037df1be41f8daf4d581d7ffa4ec8cfa640bccf Mon Sep 17 00:00:00 2001
+From: glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Fri, 25 Apr 2014 08:03:08 +0000
+Subject: [PATCH] 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
+
+ PR target/43538
+ * mt-gnu: Don't reset CXXFLAGS_FOR_TARGET.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209784 138bc75d-0d04-0410-961f-82ee72b054a4
+Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
+---
+ config/mt-gnu | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/config/mt-gnu b/config/mt-gnu
+index 15bf417..5c696f5 100644
+--- a/config/mt-gnu
++++ b/config/mt-gnu
+@@ -1 +1 @@
+-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE
++CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE
+--
+2.1.4
+