]> code.ossystems Code Review - openembedded-core.git/commitdiff
musl: Create symlinks for stub libraries
authorKhem Raj <raj.khem@gmail.com>
Wed, 11 May 2016 17:35:40 +0000 (10:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jun 2016 18:34:45 +0000 (19:34 +0100)
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

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>
meta/recipes-core/musl/musl_git.bb

index d4f98191f607e3f06d393dcf05d912f5ddbe6139..eec4f86d3ef6a987ecea1250873d6c9fe6fab9e2 100644 (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"