toolchain-external: fix musl external support on x86
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Mar 2014 22:23:35 +0000 (23:23 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 6 Mar 2014 21:59:48 +0000 (22:59 +0100)
commite4644b611c18d92388758de01a10cc79d7054ad0
tree2da45a839115ef168d97855b1a45a8e20fd80303
parent7fe16abec6d66226c46e2ad4648476f43e00425a
toolchain-external: fix musl external support on x86

On x86, the symbolic link ld-musl-<ARCH>.so.1 to libc.so must be
ld-musl-i386.so.1 in all cases, but $(ARCH) in Buildroot might be
i386, i486, i586, i686, etc. depending on the specific x86 variants
being selected.

This commit fixes that by creating a MUSL_ARCH variable set to i386 on
x86, and to $(ARCH) on other architectures.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
toolchain/toolchain-external/toolchain-external.mk