[OE-core] [PATCH V2 2/2] musl: Add aliases for glibc provided libraries

Richard Purdie richard.purdie at linuxfoundation.org
Wed Sep 19 19:00:02 UTC 2018


On Wed, 2018-09-19 at 11:55 -0700, Khem Raj wrote:
> This is a step towards running pebuilt applications for glibc  on
> musl
> There are many realworld applications which are not always built from
> source, especially provided by third party
> 
> Package the glibc symlinks into new package musl-glibc-compat
> 
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
> V2 - Package new symlinks into separate compat package
> 
>  meta/recipes-core/musl/musl_git.bb | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-
> core/musl/musl_git.bb
> index be31718e3a..efdf620c6c 100644
> --- a/meta/recipes-core/musl/musl_git.bb
> +++ b/meta/recipes-core/musl/musl_git.bb
> @@ -26,6 +26,14 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \
>             bsd-headers \
>             libssp-nonshared \
>            "
> +GLIBC_LDSO ?= "ld.so.1"
> +GLIBC_LDSO_arm = "${@ bb.utils.contains('TUNE_FEATURES',
> 'callconvention-hard', 'ld-linux-armhf.so.3', 'ld-linux.so.3', d)}"
> +GLIBC_LDSO_aarch64 = "ld-linux-aarch64.so.1"
> +GLIBC_LDSO_x86 = "ld-linux.so.2"
> +GLIBC_LDSO_x86_64 = "ld-linux-x86-64.so.2"
> +GLIBC_LDSO_x32 = "ld-linux-x32.so.2"
> +GLIBC_LDSO_powerpc64 = "ld64.so.1"
> +GLIBC_LDSO_mips64 = "ld64.so.1"

How about we tweak linuxloader.bbclass to have a glibc specific
function could call to get this? I'm not a fan of adding another set of
these lists...

Cheers,

Richard





More information about the Openembedded-core mailing list