Skip to content
Snippets Groups Projects
Commit fd1df244 authored by Thierry Escande's avatar Thierry Escande
Browse files

musl: Use MUSL_LDSO_PATHS to generate lib search paths file


With this change, the OpenHarmomy lib paths are now added to
/etc/ld-musl-${MUSL_LDSO_ARCH}.path based on the content of the distro
variable MUSL_LDSO_PATHS.

Signed-off-by: default avatarThierry Escande <thierry.escande@huawei.com>
parent 04b2f6c2
No related branches found
No related tags found
1 merge request!24Add MUSL_LDSO_PATHS distro variable
......@@ -25,20 +25,7 @@ LDFLAGS:append:toolchain-clang = " ${@bb.utils.contains('COMPILER_RT', '-rtlib=c
#CFLAGS:append:oniro-openharmony-linux = "-DHOOK_ENABLE"
do_install:append:oniro-openharmony-linux () {
cat >> ${D}${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path << EOF
${libdir}/module
${libdir}/module/ability
${libdir}/module/account
${libdir}/module/app
${libdir}/module/application
${libdir}/module/bundle
${libdir}/module/data
${libdir}/module/distributedhardware
${libdir}/module/events
${libdir}/module/multimedia
${libdir}/module/multimodalinput
${libdir}/module/net
${libdir}/module/security
${libdir}/module/telephony
EOF
for folder in ${MUSL_LDSO_PATHS}; do
echo "${libdir}/${folder}" >> ${D}${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path
done
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment