diff options
author | Zhenqiang Chen <zhenqiang.chen@linaro.org> | 2011-11-22 14:18:14 +0800 |
---|---|---|
committer | Zhenqiang Chen <zhenqiang.chen@linaro.org> | 2011-11-22 14:18:14 +0800 |
commit | 91eb66a629bbc9e3fe5a7afd10fb7b3d028588f2 (patch) | |
tree | d06954baf4d459b78b7a4cbfc75d298341ae7d2c /config | |
parent | f8d8029026d7bd8f337a32a4c2acd848db8ddb74 (diff) | |
download | crosstool-ng-91eb66a629bbc9e3fe5a7afd10fb7b3d028588f2.tar.gz crosstool-ng-91eb66a629bbc9e3fe5a7afd10fb7b3d028588f2.tar.bz2 crosstool-ng-91eb66a629bbc9e3fe5a7afd10fb7b3d028588f2.zip |
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')
-rw-r--r-- | config/libc/newlib.in.2 | 9 |
1 files changed, 9 insertions, 0 deletions
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" |