crosstool-ng/scripts/build/debug/400-ltrace.sh
Yann E. MORIN" 6e1b1ccb7d Use CT_DoExecLog when building tools and debug utilities.
/trunk/scripts/build/tools/200-sstrip.sh  |   12     6     6     0 ++++++------
 /trunk/scripts/build/debug/100-dmalloc.sh |   10     5     5     0 +++++-----
 /trunk/scripts/build/debug/400-ltrace.sh  |    5     3     2     0 +++--
 /trunk/scripts/build/debug/300-gdb.sh     |   30    17    13     0 +++++++++++++++++-------------
 /trunk/scripts/build/debug/500-strace.sh  |    7     4     3     0 ++++---
 /trunk/scripts/build/debug/200-duma.sh    |    5     3     2     0 +++--
 6 files changed, 38 insertions(+), 31 deletions(-)
2008-07-14 21:57:57 +00:00

46 lines
1.4 KiB
Bash

# Build script for ltrace
is_enabled="${CT_LTRACE}"
do_print_filename() {
[ "${CT_LTRACE}" = "y" ] || return 0
echo "ltrace-${CT_LTRACE_VERSION}.orig"
}
do_debug_ltrace_get() {
CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/
# Create a link so that the following steps are easier to do:
cd "${CT_TARBALLS_DIR}"
ltrace_ext=$(CT_GetFileExtension "ltrace_${CT_LTRACE_VERSION}.orig")
ln -sf "ltrace_${CT_LTRACE_VERSION}.orig${ltrace_ext}" "ltrace-${CT_LTRACE_VERSION}${ltrace_ext}"
}
do_debug_ltrace_extract() {
CT_ExtractAndPatch "ltrace-${CT_LTRACE_VERSION}"
}
do_debug_ltrace_build() {
CT_DoStep INFO "Installing ltrace"
mkdir -p "${CT_BUILD_DIR}/build-ltrace"
CT_Pushd "${CT_BUILD_DIR}/build-ltrace"
CT_DoLog EXTRA "Configuring ltrace"
# CFLAGS="-I${CT_SYSROOT_DIR}/usr/include" \
# LDFLAGS="-L${CT_SYSROOT_DIR}/usr/include" \
CT_DoExecLog ALL \
"${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}/configure" \
--build=${CT_BUILD} \
--host=${CT_TARGET} \
--prefix=/usr
CT_DoLog EXTRA "Building ltrace"
CT_DoExecLog ALL make
CT_DoLog EXTRA "Installing ltrace"
CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install
CT_Popd
CT_EndStep
}