Patchwork debug/gdb: disable nls when CT_TOOLCHAIN_ENABLE_NLS is not selected

login
register
mail settings
Submitter Zhenqiang Chen
Date Oct. 12, 2012, 2:06 a.m.
Message ID <CACgzC7Bn+WpbgDruNeZ4s1z0x1deF6n4YyS22Dy7p_d1fFDVCA@mail.gmail.com>
Download mbox | patch
Permalink /patch/191042/
State Accepted
Commit 15fa0b85025e
Headers show

Comments

Zhenqiang Chen - Oct. 12, 2012, 2:06 a.m.
exporting patch:
# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1348900455 -28800
# Node ID 4d75ae97ad0ccd6ecdc904a14481bfc5584175ac
# Parent  8724aedc7a30ac1e5c0a412747e5a88707da95a4
debug/gdb: disable nls when CT_TOOLCHAIN_ENABLE_NLS is not selected

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>


--
For unsubscribe information see http://sourceware.org/lists.html#faq
Yann E. MORIN - Oct. 12, 2012, 9 p.m.
Zhenqiang, All,

Your patch:
    debug/gdb: disable nls when CT_TOOLCHAIN_ENABLE_NLS is not selected

has been applied as #15fa0b85025e. Thank you!

Regards,
Yann E. MORIN.



--
For unsubscribe information see http://sourceware.org/lists.html#faq

Patch

diff -r 8724aedc7a30 -r 4d75ae97ad0c scripts/build/debug/300-gdb.sh
--- a/scripts/build/debug/300-gdb.sh    Thu Sep 20 11:20:16 2012 +0800
+++ b/scripts/build/debug/300-gdb.sh    Sat Sep 29 14:34:15 2012 +0800
@@ -136,6 +136,9 @@ 
             LD_for_gdb="ld -static"
         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[*]}'"
@@ -293,6 +296,9 @@ 
             *)      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"