[oe-commits] [openembedded-core] 49/54: musl: Create symlinks for stub libraries

git at git.openembedded.org git at git.openembedded.org
Fri May 13 12:44:25 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 2b9ae0ab056e62290f2328aa0d4dd70e6f138759
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Wed May 11 10:35:40 2016 -0700

    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
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/musl/musl_git.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index 1e33b2d..dd525b0 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list