debug/ltrace: properly fix building for powerpc 1.6
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Mar 07 12:30:01 2010 +0100 (2010-03-07)
branch1.6
changeset 182626e53ab85f5e
parent 1825 019368610072
child 1828 2df194794ac2
debug/ltrace: properly fix building for powerpc

ltrace uses ppc, whereas crosstool-NG use powerpc.
Fix that by passing the correct value to HOST when calling configure.
(transplanted from 57c71b197ee6ee6f0d551c4f9001f1d06ad2bd8a)
scripts/build/debug/400-ltrace.sh
     1.1 --- a/scripts/build/debug/400-ltrace.sh	Sat Mar 06 16:05:20 2010 +0100
     1.2 +++ b/scripts/build/debug/400-ltrace.sh	Sun Mar 07 12:30:01 2010 +0100
     1.3 @@ -14,11 +14,6 @@
     1.4  do_debug_ltrace_extract() {
     1.5      CT_Extract "ltrace-${CT_LTRACE_VERSION}"
     1.6      CT_Patch "ltrace-${CT_LTRACE_VERSION}"
     1.7 -    # ltrace uses ppc instead of powerpc for the arch name
     1.8 -    # create a symlink to get it to build for powerpc
     1.9 -    CT_Pushd "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}/sysdeps/linux-gnu"
    1.10 -    CT_DoExecLog ALL ln -sf ppc powerpc
    1.11 -    CT_Popd
    1.12  }
    1.13  
    1.14  do_debug_ltrace_build() {
    1.15 @@ -35,9 +30,10 @@
    1.16      # ltrace-0.5.3, and later, don't use GNU Autotools configure script anymore
    1.17      if [ "${CT_LTRACE_0_5_3_or_later}" = "y" ]; then
    1.18          case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
    1.19 -            x86:32) ltrace_host="i386";;
    1.20 -            x86:64) ltrace_host="x86_64";;
    1.21 -            *)      ltrace_host="${CT_ARCH}";;
    1.22 +            x86:32)     ltrace_host="i386";;
    1.23 +            x86:64)     ltrace_host="x86_64";;
    1.24 +            powerpc:*)  ltrace_host="ppc";;
    1.25 +            *)          ltrace_host="${CT_ARCH}";;
    1.26          esac
    1.27          CC="${CT_TARGET}-${CT_CC}"      \
    1.28          HOST="${ltrace_host}"           \