diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-11 10:35:40 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-29 19:34:45 +0100 |
commit | 0f4dfb6ce041e8ba4bc67de956512cfb6ac225c9 (patch) | |
tree | 05177f41a7478685e2012714580d708f5f51556c /meta | |
parent | b6b0a40e5c9ffe1a2150b36cb2a447a1361d474b (diff) | |
download | openembedded-core-0f4dfb6ce041e8ba4bc67de956512cfb6ac225c9.tar.gz openembedded-core-0f4dfb6ce041e8ba4bc67de956512cfb6ac225c9.tar.bz2 openembedded-core-0f4dfb6ce041e8ba4bc67de956512cfb6ac225c9.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>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/musl/musl_git.bb | 4 |
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 d4f98191f6..eec4f86d3e 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" |