scripts/gdb: If not building expat for gdb, disable
authorDavid Holsgrove <david.holsgrove@xilinx.com>
Wed Oct 03 15:59:22 2012 +1000 (2012-10-03)
changeset 30715243d1b432b1
parent 3070 24c8bae2216f
child 3072 15fa0b85025e
scripts/gdb: If not building expat for gdb, disable

--with-expat=yes is unconditionally passed to the gdb configure
stage, instead of respecting the ${do_expat} decision.

Disable if not needed. Prevents error building canadian cross;

configure: error: expat is missing or unusable

Where configure stage fails to find expat on the host compiler.

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Message-Id: <4c4410a2a8aab24a29c5.1349244128@localhost.localdomain>
PatchWork-Id: 188711
scripts/build/debug/300-gdb.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Thu Oct 11 14:37:45 2012 +1000
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Wed Oct 03 15:59:22 2012 +1000
     1.3 @@ -136,6 +136,13 @@
     1.4              LD_for_gdb="ld -static"
     1.5          fi
     1.6  
     1.7 +        if [ "${do_expat}" = "y" ]; then
     1.8 +            cross_extra_config+=("--with-expat=yes")
     1.9 +        else
    1.10 +            cross_extra_config+=("--disable-expat")
    1.11 +            cross_extra_config+=("--with-expat=no")
    1.12 +        fi
    1.13 +
    1.14          gdb_cross_configure="${gdb_src_dir}/configure"
    1.15  
    1.16          CT_DoLog DEBUG "Extra config passed: '${cross_extra_config[*]}'"
    1.17 @@ -150,7 +157,6 @@
    1.18              --prefix="${CT_PREFIX_DIR}"                 \
    1.19              --with-build-sysroot="${CT_SYSROOT_DIR}"    \
    1.20              --with-sysroot="${CT_SYSROOT_DIR}"          \
    1.21 -            --with-expat=yes                            \
    1.22              --disable-werror                            \
    1.23              "${cross_extra_config[@]}"                  \
    1.24              "${CT_GDB_CROSS_EXTRA_CONFIG_ARRAY[@]}"