From c704137fd60fb149dac8703c266ba633d0592d06 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 3 Jan 2010 16:46:58 +0100 Subject: 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 , the OpenEmbedded patches for cross compiling, by Khem Raj and a further set of patches by Joachim Nilsson for crosstool-NG. --- scripts/build/debug/400-ltrace.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'scripts/build') diff --git a/scripts/build/debug/400-ltrace.sh b/scripts/build/debug/400-ltrace.sh index 6b289ab4..2a015f20 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 -- cgit v1.2.3