[PATCH] Don't override CFLAGS_FOR_TARGET when optimising for size
Bob Dunlop
bob.dunlop@xyzzy.org.uk
Thu Nov 13 14:02:00 GMT 2014
Hi,
This patch prevents optmizing for space overriding any other
CFLAGS_FOR_TARGET that may already be set. Found when trying
to set -fno-omit-frame-pointer for compatability with some
in house code.
Simply append the space optimisation flags to the CFLAGS_FOR_TARGET
set rather than replacing.
Tested compiling newlib-2.0.0 for ARM with crosstool-NG-1.20.0 and
GNU Make 3.82.
Same patch for 2.1.0.
--
Bob Dunlop
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 100-fix-optimising-for-space.patch
Type: text/x-diff
Size: 335 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141113/a40dc847/attachment.bin>
More information about the Newlib
mailing list