diff options
author | Zhenqiang Chen <zhenqiang.chen@linaro.org> | 2011-11-17 18:00:28 +0800 |
---|---|---|
committer | Zhenqiang Chen <zhenqiang.chen@linaro.org> | 2011-11-17 18:00:28 +0800 |
commit | e16b3b9e525a53e497e09faa97063cb6fe53dc4e (patch) | |
tree | c209a7b23f53bb26e9e61e24acc98827856ecc15 /scripts/build/cc/gcc.sh | |
parent | 46d2621f7704449a7b53ff2a84963241146ebbd5 (diff) | |
download | crosstool-ng-e16b3b9e525a53e497e09faa97063cb6fe53dc4e.tar.gz crosstool-ng-e16b3b9e525a53e497e09faa97063cb6fe53dc4e.tar.bz2 crosstool-ng-e16b3b9e525a53e497e09faa97063cb6fe53dc4e.zip |
cc/gcc: handle NLS option
Add --disable-nls config when option "Enable nls" is not selected.
Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r-- | scripts/build/cc/gcc.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index aebaa9f6..13091006 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -289,6 +289,8 @@ do_cc_core() { extra_config+=(--disable-libgomp) extra_config+=(--disable-libmudflap) + [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls") + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532) @@ -306,7 +308,6 @@ do_cc_core() { --disable-libmudflap \ ${CC_CORE_SYSROOT_ARG} \ "${extra_config[@]}" \ - --disable-nls \ --enable-languages="${lang_opt}" \ "${CT_CC_CORE_EXTRA_CONFIG_ARRAY[@]}" @@ -598,10 +599,10 @@ do_cc() { ;; # ARCH is mips esac + [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls") + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" - # --disable-nls to work around crash bug on ppc405, but also because - # embedded systems don't really need message catalogs... CT_DoExecLog CFG \ CC_FOR_BUILD="${CT_BUILD}-gcc" \ CFLAGS="${CT_CFLAGS_FOR_HOST}" \ @@ -617,7 +618,6 @@ do_cc() { ${CC_SYSROOT_ARG} \ "${extra_config[@]}" \ --with-local-prefix="${CT_SYSROOT_DIR}" \ - --disable-nls \ --enable-c99 \ --enable-long-long \ "${CT_CC_EXTRA_CONFIG_ARRAY[@]}" |