summaryrefslogtreecommitdiff
path: root/scripts/build/libc/newlib.sh
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 /scripts/build/libc/newlib.sh
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 'scripts/build/libc/newlib.sh')
-rw-r--r--scripts/build/libc/newlib.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index 70a970c..d987477 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -85,6 +85,8 @@ do_libc_start_files() {
newlib_opts+=( "--enable-newlib-supplied-syscalls" )
fi
+ [ "${CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE}" = "y" ] && newlib_opts+=("--enable-target-optspace")
+
# Note: newlib handles the build/host/target a little bit differently
# than one would expect:
# build : not used