summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoachim Nilsson <jocke@vmlinux.org>2010-01-03 15:46:58 (GMT)
committerJoachim Nilsson <jocke@vmlinux.org>2010-01-03 15:46:58 (GMT)
commitc704137fd60fb149dac8703c266ba633d0592d06 (patch)
treeb0cc6739ee81250fa5e6f2511fd51b61ad65d37f /scripts
parentdf239bc7eef2e77df1402d3ec14deb1a22d44f27 (diff)
debug/ltrace: Add support for ltrace-0.5.3
From this version of ltrace the maintainer has removed support for GNU Autotools, so the patch sets needed to be reworked. Included is the latest Debian patch, by the Debian ltrace maintainer Juan Cespedes <cespedes@debian.org>, the OpenEmbedded patches for cross compiling, by Khem Raj <raj.khem@gmail.com> and a further set of patches by Joachim Nilsson <jocke@vmlinux.org> for crosstool-NG.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/debug/400-ltrace.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/scripts/build/debug/400-ltrace.sh b/scripts/build/debug/400-ltrace.sh
index 6b289ab..2a015f2 100644
--- a/scripts/build/debug/400-ltrace.sh
+++ b/scripts/build/debug/400-ltrace.sh
@@ -27,11 +27,19 @@ do_debug_ltrace_build() {
CT_Pushd "${CT_BUILD_DIR}/build-ltrace"
CT_DoLog EXTRA "Configuring ltrace"
- CT_DoExecLog ALL \
- ./configure \
- --build=${CT_BUILD} \
- --host=${CT_TARGET} \
- --prefix=/usr
+ # ltrace-0.5.3, and later, don't use GNU Autotools configure script anymore
+ if [ "${CT_LTRACE_0_5_3_or_later}" = "y" ]; then
+ CC=${CT_TARGET}-${CT_CC} \
+ HOST=${CT_ARCH} \
+ CFLAGS="${CT_TARGET_CFLAGS}" \
+ CT_DoExecLog ALL ./configure --prefix=/usr
+ else
+ CT_DoExecLog ALL \
+ ./configure \
+ --build=${CT_BUILD} \
+ --host=${CT_TARGET} \
+ --prefix=/usr
+ fi
CT_DoLog EXTRA "Building ltrace"
CT_DoExecLog ALL make