summaryrefslogtreecommitdiff
path: root/config/libc/newlib.in.2
diff options
context:
space:
mode:
authorZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-22 06:18:14 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-22 06:18:14 (GMT)
commit91eb66a629bbc9e3fe5a7afd10fb7b3d028588f2 (patch)
treed06954baf4d459b78b7a4cbfc75d298341ae7d2c /config/libc/newlib.in.2
parentf8d8029026d7bd8f337a32a4c2acd848db8ddb74 (diff)
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 <zhenqiang.chen@linaro.org>
Diffstat (limited to 'config/libc/newlib.in.2')
-rw-r--r--config/libc/newlib.in.29
1 files changed, 9 insertions, 0 deletions
diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2
index 3708384..ef5d076 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"