summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-01-11 07:28:38 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-01-11 07:28:38 (GMT)
commitaa5cfc5f8f23bc3da3eea50e556f940f68629ca7 (patch)
tree40e85be2b7c78d9ae56257b48dbad46c8577b1f8
parentd367e4031ea518a3dcd7cc5815f0fef069a4a151 (diff)
parent0161a4411bc82584814a6bad5d727ed4fc21d4c7 (diff)
Merge pull request #27 from bhundven/patchwork-bob-dunlop
Patch newlib-2.xx optimising for space Append flags to CFLAGS_FOR_TARGET rather than replacing.
-rw-r--r--patches/newlib/2.0.0/100-fix-optimising-for-space.patch8
-rw-r--r--patches/newlib/2.1.0/100-fix-optimising-for-space.patch8
2 files changed, 16 insertions, 0 deletions
diff --git a/patches/newlib/2.0.0/100-fix-optimising-for-space.patch b/patches/newlib/2.0.0/100-fix-optimising-for-space.patch
new file mode 100644
index 0000000..8480f92
--- /dev/null
+++ b/patches/newlib/2.0.0/100-fix-optimising-for-space.patch
@@ -0,0 +1,8 @@
+--- newlib-2.0.0/config/mt-ospace-orig 2014-11-13 12:02:45.463578281 +0000
++++ newlib-2.0.0/config/mt-ospace 2014-11-13 12:03:01.409592374 +0000
+@@ -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
diff --git a/patches/newlib/2.1.0/100-fix-optimising-for-space.patch b/patches/newlib/2.1.0/100-fix-optimising-for-space.patch
new file mode 100644
index 0000000..0e94d50
--- /dev/null
+++ b/patches/newlib/2.1.0/100-fix-optimising-for-space.patch
@@ -0,0 +1,8 @@
+--- newlib-2.1.0/config/mt-ospace-orig 2014-11-13 12:02:45.463578281 +0000
++++ newlib-2.1.0/config/mt-ospace 2014-11-13 12:03:01.409592374 +0000
+@@ -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