diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-06-16 12:39:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-17 13:42:31 +0100 |
commit | 4da1e8091ea0a57209519f0a4755d06aa108f439 (patch) | |
tree | 47d0e4ac7ec172ccacb5d8db1a5e0b765b34a7c5 /meta/recipes-core | |
parent | 987ab9f860652162725cde38335666e3dd4e4075 (diff) | |
download | poky-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.bb | 14 |
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 | ||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | 16 | ||
17 | inherit pkgconfig linuxloader | 17 | inherit pkgconfig linuxloader siteinfo |
18 | 18 | ||
19 | DEPENDS += "musl-obstack" | 19 | DEPENDS += "musl-obstack" |
20 | 20 | ||
21 | GLIBC_LDSO = "${@get_glibc_loader(d)}" | 21 | GLIBC_LDSO = "${@get_glibc_loader(d)}" |
22 | MUSL_LDSO = "${@get_musl_loader(d)}" | 22 | MUSL_LDSO = "${@get_musl_loader(d)}" |
23 | 23 | ||
24 | EXTRA_OEMAKE = "LINKER_PATH=${MUSL_LDSO} LOADER_NAME=`basename ${@get_glibc_loader(d)}`" | 24 | EXTRA_OEMAKE = "LINKER_PATH=${MUSL_LDSO} \ |
25 | LOADER_NAME=`basename ${GLIBC_LDSO}` \ | ||
26 | " | ||
25 | 27 | ||
26 | do_configure () { | 28 | do_configure () { |
27 | : | 29 | : |
@@ -33,8 +35,16 @@ do_compile () { | |||
33 | 35 | ||
34 | do_install () { | 36 | do_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 | ||
44 | FILES_${PN} += "/lib64" | ||
45 | |||
46 | INSANE_SKIP_${PN} = "libdir" | ||
47 | |||
38 | RPROVIDES_${PN} += "musl-glibc-compat" | 48 | RPROVIDES_${PN} += "musl-glibc-compat" |
39 | # | 49 | # |
40 | # We will skip parsing for non-musl systems | 50 | # We will skip parsing for non-musl systems |