toolchain-external: fix bug #5054
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Sat, 11 May 2013 04:49:34 +0000 (04:49 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 11 May 2013 19:52:22 +0000 (21:52 +0200)
commit603293f5ff8e2aa95075f03f1044afb1a7c03919
treed876cea19123b6590c62c0b884802578527ff0b7
parentd131f75019ed770db7d010a9eefdf1696ad82718
toolchain-external: fix bug #5054

The external toolchain logic checks (and finds) the proper ARCH_LIB_DIR
and forcibly copies it to */lib even if it's in */lib64
This is all well until the check is done for create_lib64_symlinks which
only verifies if ARCH_SYSROOT_DIR/lib64 is a symlink, which in some
toolchain it's a real directory (like sourcery x86_64 2012.09) and thus
doesn't make the symlink in the target.

Fix this by also checking for a real directory.

Easily reproducible by running "make qemu_x86_64_defconfig", switching
to an external toolchain before build, building and then trying to run
the resulting image.

Closes bug #5054

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
toolchain/toolchain-external/ext-tool.mk