mirror of
https://git.yoctoproject.org/poky
synced 2026-04-03 20:02:24 +02:00
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: 0f4dfb6ce041e8ba4bc67de956512cfb6ac225c9) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user