scripts/build/debug/500-strace.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 14 21:57:57 2008 +0000 (2008-07-14)
changeset 669 ca740b4c4262
parent 479 05c62432ec19
child 711 c9bb5606a265
permissions -rw-r--r--
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(-)
yann@479
     1
# Build script for strace
yann@479
     2
yann@479
     3
is_enabled="${CT_STRACE}"
yann@479
     4
yann@479
     5
do_print_filename() {
yann@479
     6
    [ "${CT_STRACE}" = "y" ] || return 0
yann@479
     7
    echo "strace-${CT_STRACE_VERSION}"
yann@479
     8
}
yann@479
     9
yann@479
    10
do_debug_strace_get() {
yann@479
    11
    CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
yann@479
    12
}
yann@479
    13
yann@479
    14
do_debug_strace_extract() {
yann@479
    15
    CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
yann@479
    16
}
yann@479
    17
yann@479
    18
do_debug_strace_build() {
yann@479
    19
    CT_DoStep INFO "Installing strace"
yann@479
    20
    mkdir -p "${CT_BUILD_DIR}/build-strace"
yann@479
    21
    CT_Pushd "${CT_BUILD_DIR}/build-strace"
yann@479
    22
yann@479
    23
    CT_DoLog EXTRA "Configuring strace"
yann@669
    24
    CT_DoExecLog ALL                                        \
yann@479
    25
    "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure"   \
yann@479
    26
        --build=${CT_BUILD}                                 \
yann@479
    27
        --host=${CT_TARGET}                                 \
yann@669
    28
        --prefix=/usr
yann@479
    29
yann@479
    30
    CT_DoLog EXTRA "Building strace"
yann@669
    31
    CT_DoExecLog ALL make
yann@479
    32
yann@479
    33
    CT_DoLog EXTRA "Installing strace"
yann@669
    34
    CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install
yann@479
    35
yann@479
    36
    CT_Popd
yann@479
    37
    CT_EndStep
yann@479
    38
}
yann@479
    39