summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-06-16 12:39:49 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-17 13:42:31 +0100
commit4da1e8091ea0a57209519f0a4755d06aa108f439 (patch)
tree47d0e4ac7ec172ccacb5d8db1a5e0b765b34a7c5 /meta/recipes-core
parent987ab9f860652162725cde38335666e3dd4e4075 (diff)
downloadpoky-4da1e8091ea0a57209519f0a4755d06aa108f439.tar.gz
gcompat: Create symlinks to glibc ldso locations
This ensures the glibc based binaries can find it in right place (From OE-Core rev: 5d82adcbc2326d8abc0039388578d730906b3e58) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/musl/gcompat_git.bb14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/recipes-core/musl/gcompat_git.bb b/meta/recipes-core/musl/gcompat_git.bb
index e1ae052c44..863ba8dbf0 100644
--- a/meta/recipes-core/musl/gcompat_git.bb
+++ b/meta/recipes-core/musl/gcompat_git.bb
@@ -14,14 +14,16 @@ SRCREV = "af5a49e489fdc04b9cf02547650d7aeaccd43793"
14 14
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16 16
17inherit pkgconfig linuxloader 17inherit pkgconfig linuxloader siteinfo
18 18
19DEPENDS += "musl-obstack" 19DEPENDS += "musl-obstack"
20 20
21GLIBC_LDSO = "${@get_glibc_loader(d)}" 21GLIBC_LDSO = "${@get_glibc_loader(d)}"
22MUSL_LDSO = "${@get_musl_loader(d)}" 22MUSL_LDSO = "${@get_musl_loader(d)}"
23 23
24EXTRA_OEMAKE = "LINKER_PATH=${MUSL_LDSO} LOADER_NAME=`basename ${@get_glibc_loader(d)}`" 24EXTRA_OEMAKE = "LINKER_PATH=${MUSL_LDSO} \
25 LOADER_NAME=`basename ${GLIBC_LDSO}` \
26 "
25 27
26do_configure () { 28do_configure () {
27 : 29 :
@@ -33,8 +35,16 @@ do_compile () {
33 35
34do_install () { 36do_install () {
35 oe_runmake install 'DESTDIR=${D}' 37 oe_runmake install 'DESTDIR=${D}'
38 if [ "${SITEINFO_BITS}" = "64" ]; then
39 install -d ${D}/lib64
40 lnr ${D}${GLIBC_LDSO} ${D}/lib64/`basename ${GLIBC_LDSO}`
41 fi
36} 42}
37 43
44FILES_${PN} += "/lib64"
45
46INSANE_SKIP_${PN} = "libdir"
47
38RPROVIDES_${PN} += "musl-glibc-compat" 48RPROVIDES_${PN} += "musl-glibc-compat"
39# 49#
40# We will skip parsing for non-musl systems 50# We will skip parsing for non-musl systems