scripts/build/debug/500-strace.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 24 15:40:58 2008 +0000 (2008-10-24)
changeset 973 6709d9a12f69
parent 711 c9bb5606a265
child 1112 c72aecd1a9ef
permissions -rw-r--r--
Make ltrace finally build:
- copy sources to build directory, as it does not build out-of-tree
- add a patch to make it build for non *-linux-gnu host tuples
- add a patch to make it cross-build correctly

/trunk/patches/ltrace/0.4/100-fix-build-with-exotic-linux-host-OS.patch | 26 26 0 0 +++
/trunk/patches/ltrace/0.4/110-allow-cross-compile.patch | 89 89 0 0 ++++++++++
/trunk/scripts/build/debug/400-ltrace.sh | 5 3 2 0 +
3 files changed, 118 insertions(+), 2 deletions(-)
     1 # Build script for strace
     2 
     3 do_print_filename() {
     4     echo "strace-${CT_STRACE_VERSION}"
     5 }
     6 
     7 do_debug_strace_get() {
     8     CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
     9     # Downloading from sourceforge leaves garbage, cleanup
    10     CT_Pushd "${CT_TARBALLS_DIR}"
    11     rm -f showfiles.php\?group_id\=*
    12     CT_Popd
    13 }
    14 
    15 do_debug_strace_extract() {
    16     CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
    17 }
    18 
    19 do_debug_strace_build() {
    20     CT_DoStep INFO "Installing strace"
    21     mkdir -p "${CT_BUILD_DIR}/build-strace"
    22     CT_Pushd "${CT_BUILD_DIR}/build-strace"
    23 
    24     CT_DoLog EXTRA "Configuring strace"
    25     CT_DoExecLog ALL                                        \
    26     "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure"   \
    27         --build=${CT_BUILD}                                 \
    28         --host=${CT_TARGET}                                 \
    29         --prefix=/usr
    30 
    31     CT_DoLog EXTRA "Building strace"
    32     CT_DoExecLog ALL make
    33 
    34     CT_DoLog EXTRA "Installing strace"
    35     CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install
    36 
    37     CT_Popd
    38     CT_EndStep
    39 }
    40