If libtool builds a binary it's best to use libtool to install it, as
otherwise you might install a wrapper script or need to make assumptions
about where libtool has put the real binary (as this isn't always .libs)

Signed-off-by: Ross Burton <[email protected]>
---
 meta/recipes-extended/xz/xz_5.8.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/xz/xz_5.8.2.bb 
b/meta/recipes-extended/xz/xz_5.8.2.bb
index 451d4810bc..982f5054c3 100644
--- a/meta/recipes-extended/xz/xz_5.8.2.bb
+++ b/meta/recipes-extended/xz/xz_5.8.2.bb
@@ -57,7 +57,9 @@ do_compile_ptest() {
 
 do_install_ptest () {
     install -d ${D}${PTEST_PATH}/tests
-    find ${B}/tests/.libs -type f -executable -exec cp {} 
${D}${PTEST_PATH}/tests \;
+    for f in $(makefile-getvar ${B}/tests/Makefile check_PROGRAMS); do
+        ${B}/libtool --mode=install install ${B}/tests/$f 
${D}${PTEST_PATH}/tests
+    done
     cp ${B}/config.h ${D}${PTEST_PATH}
     for i in files xzgrep_expected_output test_files.sh test_scripts.sh 
test_compress.sh; do
         cp -r ${S}/tests/$i ${D}${PTEST_PATH}/tests
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#229115): 
https://lists.openembedded.org/g/openembedded-core/message/229115
Mute This Topic: https://lists.openembedded.org/mt/117174301/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to