debug/ltrace: fix building on x86

ltrace uses i386 and x86_64, whereas crosstool-NG use x86 for both cases.
Fix that by detecting what bitness we're building for, and pass appropriate
i386 or x86_64 to ltrace's configure.
This commit is contained in:
Yann E. MORIN" 2010-03-06 16:05:20 +01:00
parent ca9b06fbe6
commit ecfc6d2e2d

View File

@ -22,6 +22,8 @@ do_debug_ltrace_extract() {
}
do_debug_ltrace_build() {
local ltrace_host
CT_DoStep INFO "Installing ltrace"
CT_DoLog EXTRA "Copying sources to build dir"
@ -32,9 +34,14 @@ do_debug_ltrace_build() {
CT_DoLog EXTRA "Configuring ltrace"
# ltrace-0.5.3, and later, don't use GNU Autotools configure script anymore
if [ "${CT_LTRACE_0_5_3_or_later}" = "y" ]; then
CC=${CT_TARGET}-${CT_CC} \
HOST=${CT_ARCH} \
CFLAGS="${CT_TARGET_CFLAGS}" \
case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
x86:32) ltrace_host="i386";;
x86:64) ltrace_host="x86_64";;
*) ltrace_host="${CT_ARCH}";;
esac
CC="${CT_TARGET}-${CT_CC}" \
HOST="${ltrace_host}" \
CFLAGS="${CT_TARGET_CFLAGS}" \
CT_DoExecLog ALL ./configure --prefix=/usr
else
CT_DoExecLog ALL \