diff options
author | Zhenqiang Chen <zhenqiang.chen@linaro.org> | 2011-11-28 16:05:23 +0800 |
---|---|---|
committer | Zhenqiang Chen <zhenqiang.chen@linaro.org> | 2011-11-28 16:05:23 +0800 |
commit | 381366c8b6ea88bbc32716a16581ee6865fd0888 (patch) | |
tree | cdc77e3f6cc9ff0b3968f8644666e540ef5c6f6d | |
parent | 6fc2908b8b275a6e064888371617ccd4a549e279 (diff) | |
download | crosstool-ng-381366c8b6ea88bbc32716a16581ee6865fd0888.tar.gz crosstool-ng-381366c8b6ea88bbc32716a16581ee6865fd0888.tar.bz2 crosstool-ng-381366c8b6ea88bbc32716a16581ee6865fd0888.zip |
libc/newlib: remove hard-coded "-O"
With hard-coded "-O", users can not customize CFLAGS_FOR_TARGET
by CT_TARGET_CFLAGS. If "-O" is needed, users can input it in
CT_TARGET_CFLAGS. By default, "-Os" is enabled.
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
-rw-r--r-- | scripts/build/libc/newlib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index d9874770..1e49485e 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -94,7 +94,7 @@ do_libc_start_files() { # target : the machine newlib runs on CT_DoExecLog CFG \ CC_FOR_BUILD="${CT_BUILD}-gcc" \ - CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS} -O" \ + CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \ AR=${CT_TARGET}-ar \ RANLIB=${CT_TARGET}-ranlib \ "${CT_SRC_DIR}/newlib-$(libc_newlib_version)/configure" \ |