From a1c3039811a0ffc61c2e1b5b085ec7b6ddf8c30a Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Tue, 11 Apr 2017 01:06:16 -0700 Subject: Sort out newlib patches - Existing 110-fix-eabihf.patch did not apply to 1.20.0 and earlier - This patch is also applicable to 2.x versions - The patch needs to be applied to both configure.in/configure - Existing 200-optimising-for-space.patch also applies to all versions before 2.4.0 - Similar issues exist in other config/mt-* files - m68k patch is applicable to 2.* versions Signed-off-by: Alexey Neyman --- patches/newlib/1.18.0/200-fix-mt-cflags.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 patches/newlib/1.18.0/200-fix-mt-cflags.patch (limited to 'patches/newlib/1.18.0/200-fix-mt-cflags.patch') diff --git a/patches/newlib/1.18.0/200-fix-mt-cflags.patch b/patches/newlib/1.18.0/200-fix-mt-cflags.patch new file mode 100644 index 00000000..718e0c98 --- /dev/null +++ b/patches/newlib/1.18.0/200-fix-mt-cflags.patch @@ -0,0 +1,25 @@ +diff -urpN newlib-1.18.0.orig/config/mt-d30v newlib-1.18.0/config/mt-d30v +--- newlib-1.18.0.orig/config/mt-d30v 2017-04-11 00:51:26.740759083 -0700 ++++ newlib-1.18.0/config/mt-d30v 2017-04-11 00:55:51.114626557 -0700 +@@ -1,4 +1,4 @@ + # Build libraries optimizing for space, not speed. + # Turn off warnings about symbols named the same as registers +- CFLAGS_FOR_TARGET = -g -Os -Wa,-C +- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C ++ CFLAGS_FOR_TARGET += -g -Os -Wa,-C ++ CXXFLAGS_FOR_TARGET += -g -Os -Wa,-C +diff -urpN newlib-1.18.0.orig/config/mt-gnu newlib-1.18.0/config/mt-gnu +--- newlib-1.18.0.orig/config/mt-gnu 2017-04-11 00:51:26.740759083 -0700 ++++ newlib-1.18.0/config/mt-gnu 2017-04-11 00:55:51.114626557 -0700 +@@ -1 +1 @@ +-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE ++CXXFLAGS_FOR_TARGET += $(CXXFLAGS) -D_GNU_SOURCE +diff -urpN newlib-1.18.0.orig/config/mt-ospace newlib-1.18.0/config/mt-ospace +--- newlib-1.18.0.orig/config/mt-ospace 2017-04-11 00:51:26.740759083 -0700 ++++ newlib-1.18.0/config/mt-ospace 2017-04-11 00:55:51.114626557 -0700 +@@ -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 -- cgit v1.2.3