external-toolchain: support libraries outside of /lib
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Feb 2010 20:34:49 +0000 (21:34 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 17 Apr 2010 00:09:38 +0000 (02:09 +0200)
commitea2505ee567f716f6b2aeae45ccfe2555c0bcb97
tree615bd96b46cae8e57d76bea985e8486867c0c708
parent7b7a4be0e1d59b9218b6145331c700ac8199e24e
external-toolchain: support libraries outside of /lib

The copy_toolchain_lib_root function was making the assumption that
all libraries were stored inside the /lib directory of the sysroot
directory. However, this isn't true for certain toolchains,
particularly for the libstdc++ library.

The function is therefore reworked to find the library and its related
symlink either in /lib or /usr/lib in the sysroot, and copies it at
the same location in the target directory.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/external-toolchain/ext-tool.mk