summaryrefslogtreecommitdiff
path: root/meta/recipes-core/musl
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-05-11 10:35:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 13:40:53 +0100
commit2b9ae0ab056e62290f2328aa0d4dd70e6f138759 (patch)
treefca719597c6547143501f0c46b6a68779125554e /meta/recipes-core/musl
parent6ea7e6a04441028acec7dc12a6860a1ae85b15f2 (diff)
downloadopenembedded-core-2b9ae0ab056e62290f2328aa0d4dd70e6f138759.tar.gz
openembedded-core-2b9ae0ab056e62290f2328aa0d4dd70e6f138759.tar.bz2
openembedded-core-2b9ae0ab056e62290f2328aa0d4dd70e6f138759.zip
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@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/musl')
-rw-r--r--meta/recipes-core/musl/musl_git.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index 1e33b2de52..dd525b0a3c 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"