binutils/binutils: handle NLS option
authorZhenqiang Chen <zhenqiang.chen@linaro.org>
Thu Nov 17 17:59:44 2011 +0800 (2011-11-17)
changeset 2779fc8b56c5c483
parent 2778 986e1c75432a
child 2780 03ab39f149b4
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>
scripts/build/binutils/binutils.sh
     1.1 --- a/scripts/build/binutils/binutils.sh	Fri Nov 18 15:29:18 2011 +0800
     1.2 +++ b/scripts/build/binutils/binutils.sh	Thu Nov 17 17:59:44 2011 +0800
     1.3 @@ -62,6 +62,8 @@
     1.4          [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
     1.5      fi
     1.6  
     1.7 +    [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
     1.8 +
     1.9      CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
    1.10  
    1.11      CT_DoExecLog CFG                                            \
    1.12 @@ -72,7 +74,6 @@
    1.13          --host=${CT_HOST}                                       \
    1.14          --target=${CT_TARGET}                                   \
    1.15          --prefix=${CT_PREFIX_DIR}                               \
    1.16 -        --disable-nls                                           \
    1.17          --disable-multilib                                      \
    1.18          --disable-werror                                        \
    1.19          "${extra_config[@]}"                                    \
    1.20 @@ -166,6 +167,8 @@
    1.21              [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
    1.22          fi
    1.23  
    1.24 +        [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
    1.25 +
    1.26          CT_DoExecLog CFG                                            \
    1.27          "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure"   \
    1.28              --build=${CT_BUILD}                                     \
    1.29 @@ -175,7 +178,6 @@
    1.30              --disable-werror                                        \
    1.31              --enable-shared                                         \
    1.32              --enable-static                                         \
    1.33 -            --disable-nls                                           \
    1.34              --disable-multilib                                      \
    1.35              "${extra_config[@]}"                                    \
    1.36              ${CT_ARCH_WITH_FLOAT}                                   \