toolchain: fix installing gconv libs with multi-arch toolchain
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 21 Apr 2015 16:55:52 +0000 (18:55 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Apr 2015 20:30:34 +0000 (22:30 +0200)
commitfb5cbf3198c9af20f7440b66c070873bb2207797
tree67e8980e0d3cd3e5ddd3e5138ca5b352c13273e5
parent7c1db80c1d8854e5155f114c685b27451e5723eb
toolchain: fix installing gconv libs with multi-arch toolchain

For a multi-arch toolchain, gconv modules are in a sub-directory named
after the machine gcc targets. This is the case, for example, for the
Linaro ARM 2014.09 toolchain, which has the gconv modules in (relative
to the sysroot):
    /usr/lib/arm-linux-gnueabihf/gconv

while the Sourcery CodeBench ARM 2014.05 (non-multi-arch) has them in:
    /usr/lib/gconv

So, to catter for both cases, search both paths. We want to favour the
machine-specific gconv modules over potentially existing "generic" ones,
so we first search that (if it exists) and fallback to looking in the
generic location.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/toolchain.mk