scripts/build/debug/strace.sh
changeset 239 988e9b7f70eb
child 255 28bc219f3fb4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/build/debug/strace.sh	Thu Jul 12 13:34:56 2007 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +# Build script for strace
     1.5 +
     1.6 +is_enabled="${CT_STRACE}"
     1.7 +
     1.8 +do_print_filename() {
     1.9 +    [ "${CT_STRACE}" = "y" ] || return 0
    1.10 +    echo "strace-${CT_STRACE_VERSION}"
    1.11 +}
    1.12 +
    1.13 +do_debug_strace_get() {
    1.14 +    CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
    1.15 +}
    1.16 +
    1.17 +do_debug_strace_extract() {
    1.18 +    CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
    1.19 +}
    1.20 +
    1.21 +do_debug_strace_build() {
    1.22 +    CT_DoStep INFO "Installing strace"
    1.23 +    mkdir -p "${CT_BUILD_DIR}/build-strace"
    1.24 +    CT_Pushd "${CT_BUILD_DIR}/build-strace"
    1.25 +
    1.26 +    CT_DoLog EXTRA "Configuring strace"
    1.27 +    "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure"   \
    1.28 +        --build=${CT_BUILD}                                 \
    1.29 +        --host=${CT_TARGET}                                 \
    1.30 +        --prefix=/usr
    1.31 +
    1.32 +    CT_DoLog EXTRA "Building strace"
    1.33 +    make
    1.34 +
    1.35 +    CT_DoLog EXTRA "Installing strace"
    1.36 +    make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install
    1.37 +
    1.38 +    CT_Popd
    1.39 +    CT_EndStep
    1.40 +}
    1.41 +