mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
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:
parent
ca9b06fbe6
commit
ecfc6d2e2d
@ -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,8 +34,13 @@ 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} \
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user