debug/ltrace: fix build with /exotic/ linux-host OS
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Sep 14 18:58:55 2009 +0200 (2009-09-14)
changeset 154116a2eaf5fd77
parent 1540 3c916825b28d
child 1542 774837ae23ae
child 1546 61e8ce6419f4
debug/ltrace: fix build with /exotic/ linux-host OS

For ARM EABI hosts (ct-ng's target), the tupple ends in 'gnueabi'
For uClibc-based toolchains, the tuple ends in '-uclibc.*'
Make ltrace recognise those tuples as being the same as 'linux-gnu'
patches/ltrace/0.5.2/130-fix-build-with-exotic-linux-host-OS.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/ltrace/0.5.2/130-fix-build-with-exotic-linux-host-OS.patch	Mon Sep 14 18:58:55 2009 +0200
     1.3 @@ -0,0 +1,26 @@
     1.4 +diff -durN ltrace-0.5.2.orig/configure ltrace-0.5.2/configure
     1.5 +--- ltrace-0.5.2.orig/configure	2009-09-14 18:47:45.000000000 +0200
     1.6 ++++ ltrace-0.5.2/configure	2009-09-14 18:49:18.000000000 +0200
     1.7 +@@ -1829,6 +1829,9 @@
     1.8 +   linux-gnu*) host_os=linux-gnu
     1.9 + esac
    1.10 + HOST_OS="$host_os"
    1.11 ++case "${HOST_OS}" in
    1.12 ++  linux-*) HOST_OS=linux-gnu;;
    1.13 ++esac
    1.14 + 
    1.15 + 
    1.16 + ac_ext=c
    1.17 +diff -durN ltrace-0.5.2.orig/configure.ac ltrace-0.5.2/configure.ac
    1.18 +--- ltrace-0.5.2.orig/configure.ac	2009-09-14 18:47:45.000000000 +0200
    1.19 ++++ ltrace-0.5.2/configure.ac	2009-09-14 18:49:18.000000000 +0200
    1.20 +@@ -10,6 +10,9 @@
    1.21 +   linux-gnu*) host_os=linux-gnu
    1.22 + esac
    1.23 + HOST_OS="$host_os"
    1.24 ++case "${HOST_OS}" in
    1.25 ++  linux-*) HOST_OS=linux-gnu;;
    1.26 ++esac
    1.27 + AC_SUBST(HOST_OS)
    1.28 + HOST_ARCH="$host_cpu"
    1.29 + AC_SUBST(HOST_ARCH)