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/parted/parted_3.6.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/parted/parted_3.6.bb 
b/meta/recipes-extended/parted/parted_3.6.bb
index 6fc2cb3b3a..8f703d162f 100644
--- a/meta/recipes-extended/parted/parted_3.6.bb
+++ b/meta/recipes-extended/parted/parted_3.6.bb
@@ -45,8 +45,8 @@ do_install_ptest() {
            -e "s|^Makefile:.*|Makefile:|g" \
            -e "/^BUILDINFO.*$/d" \
            -i $t/tests/Makefile
-       for i in print-align print-max print-flags dup-clobber duplicate 
fs-resize; \
-         do cp ${B}/tests/.libs/$i $t/tests/; \
+       for i in print-align print-max print-flags dup-clobber duplicate 
fs-resize; do
+               ${B}/libtool --mode=install install ${B}/tests/$i $t/tests/
        done
        sed -e 's| ../parted||' -i $t/tests/*.sh
 }
-- 
2.43.0

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

Reply via email to