From 91eb66a629bbc9e3fe5a7afd10fb7b3d028588f2 Mon Sep 17 00:00:00 2001 From: Zhenqiang Chen Date: Tue, 22 Nov 2011 14:18:14 +0800 Subject: libc/newlib: add option to optimise for size Add an option to build with -Os instead of the default -O. Reviewed-by: Michael Hope Signed-off-by: Zhenqiang Chen --- config/libc/newlib.in.2 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config') diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2 index 3708384f..ef5d0769 100644 --- a/config/libc/newlib.in.2 +++ b/config/libc/newlib.in.2 @@ -35,6 +35,15 @@ config LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS _write... If you plan to port newlib to a new platform/board, say Yes. +config LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE + bool + prompt "Optimize newlib for size" + default y + help + Pass --enable-target-optspace to newlib configure. + + This will compile newlib with -Os. + config LIBC_NEWLIB_EXTRA_CONFIG_ARRAY string prompt "Extra config for newlib" -- cgit v1.2.3