mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-11 15:00:39 +00:00
arm-toolchain/androidclang: strip meaningless RPATHS
As per [1], target builds of androidclang produce useless-rpath errors. /usr/share/clang-r416183b/python3/lib/python3.9/lib-dynload/_posixsubprocess.cpython-39-x86_64-linux-gnu.so contains probably-redundant RPATH /../lib [useless-rpaths] Those RPATHs are of no use, so we can remove them entirely. [1] https://errors.yoctoproject.org/Errors/Details/640604/ Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -33,6 +33,8 @@ do_install() {
|
||||
install -d ${D}${datadir}/${ANDROID_CLANG_VERSION}/
|
||||
|
||||
cp --no-preserve=ownership -r ${S}/. ${D}${datadir}/${ANDROID_CLANG_VERSION}/
|
||||
# Strip bad RPATHs in the embedded python3
|
||||
chrpath -d ${D}${datadir}/${ANDROID_CLANG_VERSION}/python3/lib/python*/lib-dynload/*.so
|
||||
|
||||
install -d ${D}${bindir}
|
||||
# Symlink all executables into bindir
|
||||
@@ -43,7 +45,7 @@ do_install() {
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
INSANE_SKIP:${PN} = "already-stripped libdir staticdev file-rdeps arch dev-so useless-rpaths"
|
||||
INSANE_SKIP:${PN} = "already-stripped libdir staticdev file-rdeps arch dev-so"
|
||||
|
||||
INHIBIT_SYSROOT_STRIP = "1"
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
|
||||
Reference in New Issue
Block a user