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.
This commit is contained in:
Yann E. MORIN" 2010-03-07 12:30:01 +01:00
parent ecfc6d2e2d
commit 8bc58e651d

View File

@ -14,11 +14,6 @@ do_debug_ltrace_get() {
do_debug_ltrace_extract() {
CT_Extract "ltrace-${CT_LTRACE_VERSION}"
CT_Patch "ltrace-${CT_LTRACE_VERSION}"
# ltrace uses ppc instead of powerpc for the arch name
# create a symlink to get it to build for powerpc
CT_Pushd "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}/sysdeps/linux-gnu"
CT_DoExecLog ALL ln -sf ppc powerpc
CT_Popd
}
do_debug_ltrace_build() {
@ -37,6 +32,7 @@ do_debug_ltrace_build() {
case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
x86:32) ltrace_host="i386";;
x86:64) ltrace_host="x86_64";;
powerpc:*) ltrace_host="ppc";;
*) ltrace_host="${CT_ARCH}";;
esac
CC="${CT_TARGET}-${CT_CC}" \