summaryrefslogtreecommitdiff
path: root/scripts/build/binutils/binutils.sh
diff options
context:
space:
mode:
authorZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-17 09:59:44 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-17 09:59:44 (GMT)
commit46d2621f7704449a7b53ff2a84963241146ebbd5 (patch)
treec599e30d7623c807435f9d72cb27fcae4d7ed223 /scripts/build/binutils/binutils.sh
parent9ceaada5a065dee90ce2a3671e44878d8b283448 (diff)
binutils/binutils: 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/binutils/binutils.sh')
-rw-r--r--scripts/build/binutils/binutils.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
index 2861cef..fb35bcd 100644
--- a/scripts/build/binutils/binutils.sh
+++ b/scripts/build/binutils/binutils.sh
@@ -62,6 +62,8 @@ do_binutils() {
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
fi
+ [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
+
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
CT_DoExecLog CFG \
@@ -72,7 +74,6 @@ do_binutils() {
--host=${CT_HOST} \
--target=${CT_TARGET} \
--prefix=${CT_PREFIX_DIR} \
- --disable-nls \
--disable-multilib \
--disable-werror \
"${extra_config[@]}" \
@@ -166,6 +167,8 @@ do_binutils_target() {
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
fi
+ [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
+
CT_DoExecLog CFG \
"${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure" \
--build=${CT_BUILD} \
@@ -175,7 +178,6 @@ do_binutils_target() {
--disable-werror \
--enable-shared \
--enable-static \
- --disable-nls \
--disable-multilib \
"${extra_config[@]}" \
${CT_ARCH_WITH_FLOAT} \