musl: Create symlinks for stub libraries

Some libraries e.g. libm.so are needed to be
created so that SDKs built with distros which
disable static librararies can have the stubs
and since default linker script requires -lm
this helps in compiling applications with SDK

there are .a equivalents for these libraries
but they do not land in SDKs when static libs
are disabled distrowide

(From OE-Core rev: 2b9ae0ab056e62290f2328aa0d4dd70e6f138759)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2016-05-11 10:35:40 -07:00 committed by Richard Purdie
parent 6d7cbc6b90
commit 922c640ca9
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ do_install() {
install -d ${D}${bindir}
ln -s ../../${libdir}/libc.so ${D}${bindir}/ldd
for l in crypt dl m pthread resolv rt util xnet
do
ln -s libc.so ${D}${libdir}/lib$l.so
done
}
RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev"