summaryrefslogtreecommitdiff
path: root/patches/newlib/2.0.0/200-fix-mt-cflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/newlib/2.0.0/200-fix-mt-cflags.patch')
-rw-r--r--patches/newlib/2.0.0/200-fix-mt-cflags.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/newlib/2.0.0/200-fix-mt-cflags.patch b/patches/newlib/2.0.0/200-fix-mt-cflags.patch
new file mode 100644
index 0000000..d2b0529
--- /dev/null
+++ b/patches/newlib/2.0.0/200-fix-mt-cflags.patch
@@ -0,0 +1,25 @@
+diff -urpN newlib-2.0.0.orig/config/mt-d30v newlib-2.0.0/config/mt-d30v
+--- newlib-2.0.0.orig/config/mt-d30v 2017-04-11 00:51:27.256762590 -0700
++++ newlib-2.0.0/config/mt-d30v 2017-04-11 00:55:51.126626644 -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-2.0.0.orig/config/mt-gnu newlib-2.0.0/config/mt-gnu
+--- newlib-2.0.0.orig/config/mt-gnu 2017-04-11 00:51:27.256762590 -0700
++++ newlib-2.0.0/config/mt-gnu 2017-04-11 00:55:51.126626644 -0700
+@@ -1 +1 @@
+-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE
++CXXFLAGS_FOR_TARGET += $(CXXFLAGS) -D_GNU_SOURCE
+diff -urpN newlib-2.0.0.orig/config/mt-ospace newlib-2.0.0/config/mt-ospace
+--- newlib-2.0.0.orig/config/mt-ospace 2017-04-11 00:51:27.256762590 -0700
++++ newlib-2.0.0/config/mt-ospace 2017-04-11 00:55:51.126626644 -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