summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-07 11:30:01 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-07 11:30:01 (GMT)
commit8bc58e651da28c5d8ef6e518da3e3a87e4cb9186 (patch)
tree487042fe1c0ff521349a09b1e4688378b92340e2 /scripts/build
parentecfc6d2e2d2ca5690c35a425dd40acfa8469eb96 (diff)
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.
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/debug/400-ltrace.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/build/debug/400-ltrace.sh b/scripts/build/debug/400-ltrace.sh
index 72f16f0..f09277d 100644
--- a/scripts/build/debug/400-ltrace.sh
+++ b/scripts/build/debug/400-ltrace.sh
@@ -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() {
@@ -35,9 +30,10 @@ do_debug_ltrace_build() {
# ltrace-0.5.3, and later, don't use GNU Autotools configure script anymore
if [ "${CT_LTRACE_0_5_3_or_later}" = "y" ]; then
case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
- x86:32) ltrace_host="i386";;
- x86:64) ltrace_host="x86_64";;
- *) ltrace_host="${CT_ARCH}";;
+ 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}" \
HOST="${ltrace_host}" \