mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 00:32:14 +02:00
perl: Don't use TARGET_ARCH in filepaths
Platforms like powerpc64le have different variants of the same target. Perl guesses that the target should be called powerpc64le-linux, while TARGET_ARCH think it is called ppc64le-linux. If we use TARGET_ARCH for perl-native on powerpc64le this build will fail since the post-install rm command won't reference and existing file. We know that there is only one arch existing per build, so use a wildcard for finding the path instead of trying to guess the correct architecture name. (From OE-Core rev: 6eadd9f5ac2887311ae9ed133b389ae4d64a8181) Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
42ea15a21b
commit
3686f7953f
@@ -107,8 +107,8 @@ do_install() {
|
||||
install lib/ExtUtils/typemap ${D}${libdir}/perl5/${PV}/ExtUtils/
|
||||
|
||||
# Fix up shared library
|
||||
rm ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so
|
||||
ln -sf ../../../../libperl.so.${PERL_LIB_VER} ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/libperl.so
|
||||
rm ${D}/${libdir}/perl5/${PV}/*/CORE/libperl.so
|
||||
ln -sf ../../../../libperl.so.${PERL_LIB_VER} $(echo ${D}/${libdir}/perl5/${PV}/*/CORE)/libperl.so
|
||||
}
|
||||
|
||||
do_install_append_class-target() {
|
||||
|
||||
Reference in New Issue
Block a user