diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-03-15 12:02:03 (GMT) |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2016-03-15 14:14:16 (GMT) |
commit | 8a65d08b275837052c497fc5db033b32f3fd5342 (patch) | |
tree | f06fda66f03a2861a10890d87f6e398b4bcf273d /patches/gcc/4.9.3/131-mt-ospace-preserve-FLAGS_FOR_TARGET.patch | |
parent | d7339f50a2e83a5a267551c2b798f0f53a545f08 (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.9.3/131-mt-ospace-preserve-FLAGS_FOR_TARGET.patch')
-rw-r--r-- | patches/gcc/4.9.3/131-mt-ospace-preserve-FLAGS_FOR_TARGET.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/gcc/4.9.3/131-mt-ospace-preserve-FLAGS_FOR_TARGET.patch b/patches/gcc/4.9.3/131-mt-ospace-preserve-FLAGS_FOR_TARGET.patch new file mode 100644 index 0000000..1c49fb0 --- /dev/null +++ b/patches/gcc/4.9.3/131-mt-ospace-preserve-FLAGS_FOR_TARGET.patch @@ -0,0 +1,28 @@ +From 9bcf38cd9f382486b3823eb923b50e2e9a89cef7 Mon Sep 17 00:00:00 2001 +From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Tue, 18 Nov 2014 22:12:52 +0000 +Subject: [PATCH] 2014-11-17 Bob Dunlop <bob.dunlop@xyzzy.org.uk> + + * mt-ospace (CFLAGS_FOR_TARGET): Append -g -Os rather than + overwriting. + (CXXFLAGS_FOR_TARGET): Similarly. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217739 138bc75d-0d04-0410-961f-82ee72b054a4 +Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> +--- + config/mt-ospace | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/config/mt-ospace b/config/mt-ospace +index 7f09104..ce29ff4 100644 +--- a/config/mt-ospace ++++ b/config/mt-ospace +@@ -1,3 +1,3 @@ + # Build libraries optimizing for space, not speed. +- CFLAGS_FOR_TARGET = -g -Os +- CXXFLAGS_FOR_TARGET = -g -Os ++ CFLAGS_FOR_TARGET += -g -Os ++ CXXFLAGS_FOR_TARGET += -g -Os +-- +2.1.4 + |