summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenqiang Chen <zhenqiang.chen@linaro.org>2012-09-29 06:34:15 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2012-09-29 06:34:15 (GMT)
commit5094e8bc0a5971c4f70cd3fd914591e7befc323e (patch)
tree2ec54779fae07d9c79780e63fe7e6a0ab48467cd
parentf6eeea18810f299baf1b31bbb896f3a7f762a3f1 (diff)
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
-rw-r--r--scripts/build/debug/300-gdb.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index f990e96..d1839c5 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -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"