debug/gdb: disable nls when CT_TOOLCHAIN_ENABLE_NLS is not selected

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
Message-Id: <CACgzC7Bn+WpbgDruNeZ4s1z0x1deF6n4YyS22Dy7p_d1fFDVCA@mail.gmail.com>
PatchWork-Id: 191042
This commit is contained in:
Zhenqiang Chen 2012-09-29 14:34:15 +08:00
parent f6eeea1881
commit 5094e8bc0a

View File

@ -143,6 +143,9 @@ do_debug_gdb_build() {
cross_extra_config+=("--with-expat=no")
fi
[ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && \
cross_extra_config+=("--disable-nls")
gdb_cross_configure="${gdb_src_dir}/configure"
CT_DoLog DEBUG "Extra config passed: '${cross_extra_config[*]}'"
@ -299,6 +302,9 @@ do_debug_gdb_build() {
*) native_extra_config+=("--enable-threads");;
esac
[ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && \
native_extra_config+=("--disable-nls")
if [ "${CT_GDB_NATIVE_STATIC}" = "y" ]; then
CC_for_gdb="${CT_TARGET}-gcc -static"
LD_for_gdb="${CT_TARGET}-ld -static"