diff options
author | Alexey Neyman <stilor@att.net> | 2017-04-11 08:06:16 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-04-11 08:18:19 (GMT) |
commit | a1c3039811a0ffc61c2e1b5b085ec7b6ddf8c30a (patch) | |
tree | 6bb44b8c16a877f492acc59fc7fc6ac4af52d1d6 /patches/newlib/1.20.0 | |
parent | 60c50068483d5a6ef76befeb4518483d753af32b (diff) |
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 <stilor@att.net>
Diffstat (limited to 'patches/newlib/1.20.0')
-rw-r--r-- | patches/newlib/1.20.0/110-fix-eabihf.patch | 26 | ||||
-rw-r--r-- | patches/newlib/1.20.0/200-fix-mt-cflags.patch | 25 |
2 files changed, 44 insertions, 7 deletions
diff --git a/patches/newlib/1.20.0/110-fix-eabihf.patch b/patches/newlib/1.20.0/110-fix-eabihf.patch index 0f0d5e7..8e30823 100644 --- a/patches/newlib/1.20.0/110-fix-eabihf.patch +++ b/patches/newlib/1.20.0/110-fix-eabihf.patch @@ -1,12 +1,24 @@ -diff -ur newlib-1.20.0.orig/libgloss/arm/configure.in newlib-1.20.0/libgloss/arm/configure.in ---- newlib-1.20.0.orig/libgloss/arm/configure.in 2006-05-10 22:51:40.000000000 +0200 -+++ newlib-1.20.0/libgloss/arm/configure.in 2015-01-04 15:27:41.471549917 +0100 -@@ -49,7 +49,7 @@ +diff -urpN newlib-1.20.0.orig/libgloss/arm/configure newlib-1.20.0/libgloss/arm/configure +--- newlib-1.20.0.orig/libgloss/arm/configure 2017-04-11 00:41:24.120869401 -0700 ++++ newlib-1.20.0/libgloss/arm/configure 2017-04-11 00:43:12.289788688 -0700 +@@ -2540,7 +2540,7 @@ test "${CCASFLAGS+set}" = set || CCASFLA + + + case "${target}" in +- *-*-elf | *-*-eabi) ++ *-*-elf | *-*-eabi*) + objtype=elf- + ;; + *-*-coff) +diff -urpN newlib-1.20.0.orig/libgloss/arm/configure.in newlib-1.20.0/libgloss/arm/configure.in +--- newlib-1.20.0.orig/libgloss/arm/configure.in 2017-04-11 00:41:24.120869401 -0700 ++++ newlib-1.20.0/libgloss/arm/configure.in 2017-04-11 00:43:12.289788688 -0700 +@@ -49,7 +49,7 @@ AC_PROG_RANLIB LIB_AM_PROG_AS - + case "${target}" in - *-*-elf | *-*-eabi) + *-*-elf | *-*-eabi*) - objtype=elf- - ;; + objtype=elf- + ;; *-*-coff) diff --git a/patches/newlib/1.20.0/200-fix-mt-cflags.patch b/patches/newlib/1.20.0/200-fix-mt-cflags.patch new file mode 100644 index 0000000..b470af7 --- /dev/null +++ b/patches/newlib/1.20.0/200-fix-mt-cflags.patch @@ -0,0 +1,25 @@ +diff -urpN newlib-1.20.0.orig/config/mt-d30v newlib-1.20.0/config/mt-d30v +--- newlib-1.20.0.orig/config/mt-d30v 2017-04-11 00:51:27.080761393 -0700 ++++ newlib-1.20.0/config/mt-d30v 2017-04-11 00:55:51.122626615 -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.20.0.orig/config/mt-gnu newlib-1.20.0/config/mt-gnu +--- newlib-1.20.0.orig/config/mt-gnu 2017-04-11 00:51:27.080761393 -0700 ++++ newlib-1.20.0/config/mt-gnu 2017-04-11 00:55:51.122626615 -0700 +@@ -1 +1 @@ +-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE ++CXXFLAGS_FOR_TARGET += $(CXXFLAGS) -D_GNU_SOURCE +diff -urpN newlib-1.20.0.orig/config/mt-ospace newlib-1.20.0/config/mt-ospace +--- newlib-1.20.0.orig/config/mt-ospace 2017-04-11 00:51:27.080761393 -0700 ++++ newlib-1.20.0/config/mt-ospace 2017-04-11 00:55:51.122626615 -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 |