summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2013-03-03 15:19:32 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2013-03-03 15:19:32 (GMT)
commit71d2f41cf97c07734cff6210a2406ff12fb97f48 (patch)
tree186edcc2f69ff2901fcc49862e368d03265fe3de
parent5b41901f995f6643872df689c87791646d5eb4a3 (diff)
debug/gdb: always enable expat for the cross-gdb
There's no point in not supporting XML in the cross-gdb. I mean, come on... ;-) It's still the responsibility of the user to have the necessary devel expat packages installed for his/her distro. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r--scripts/build/debug/300-gdb.sh16
1 files changed, 6 insertions, 10 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 4b12cc5..55050df 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -145,12 +145,8 @@ do_debug_gdb_build() {
LD_for_gdb="ld -static"
fi
- if [ "${need_expat_src}" = "y" ]; then
- cross_extra_config+=("--with-expat=yes")
- else
- cross_extra_config+=("--disable-expat")
- cross_extra_config+=("--with-expat=no")
- fi
+ cross_extra_config+=("--enable-expat")
+ cross_extra_config+=("--with-expat=yes")
[ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && \
cross_extra_config+=("--disable-nls")
@@ -283,10 +279,10 @@ do_debug_gdb_build() {
# Build libexpat
CT_DoLog EXTRA "Building static target expat"
CT_mkdir_pushd "${CT_BUILD_DIR}/build-expat-target-${CT_TARGET}"
- do_expat_backend host="${CT_TARGET}" \
- prefix="${CT_BUILD_DIR}/static-target" \
- cflags="" \
- ldflags=""
+ do_gdb_expat_backend host="${CT_TARGET}" \
+ prefix="${CT_BUILD_DIR}/static-target" \
+ cflags="" \
+ ldflags=""
CT_Popd
native_extra_config+=("--with-expat")
native_extra_config+=("--with-libexpat-prefix=${CT_BUILD_DIR}/static-target")