toolchain-external: install libmvec.so from glibc toolchains
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 26 Oct 2016 21:47:59 +0000 (23:47 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 27 Oct 2016 08:41:44 +0000 (10:41 +0200)
commit447e9051f32936a3a185af926c7ec394cbd61962
tree467829f32d3d6f07ef32709025b8c16296600953
parent2c877590b3b18df4853989a66378c184713ccd55
toolchain-external: install libmvec.so from glibc toolchains

On some architectures (namely x86-64), glibc may provide a libmvec
library since glibc 2.22, which programs built with gcc OpenMP support
might get linked to.

In order for these programs to work on the target, we need to copy
this library to the target filesystem.

This commit takes care of this for the external toolchain
situation. Note that libraries listed in TOOLCHAIN_EXTERNAL_LIBS are
silently ignored if they don't exist. Therefore, we don't need to have
any condition on the architecture or glibc version.

For more details on libmvec, see
https://sourceware.org/glibc/wiki/libmvec.

Fixes bug #9111.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
toolchain/toolchain-external/toolchain-external.mk