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-support/popt/popt_1.19.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meta/recipes-support/popt/popt_1.19.bb b/meta/recipes-support/popt/popt_1.19.bb index b1d8bea790..525bf553b1 100644 --- a/meta/recipes-support/popt/popt_1.19.bb +++ b/meta/recipes-support/popt/popt_1.19.bb @@ -22,10 +22,9 @@ do_compile_ptest() { } do_install_ptest() { - install ${B}/tests/.libs/test* ${D}/${PTEST_PATH} - install ${B}/tests/.libs/tdict ${D}/${PTEST_PATH} - install ${B}/tests/testit.sh ${D}/${PTEST_PATH} - install ${B}/tests/test-poptrc ${D}/${PTEST_PATH} + for f in test1 test2 tdict test3 testit.sh test-poptrc; do + ${B}/libtool --mode=install install ${B}/tests/$f ${D}/${PTEST_PATH} + done } BBCLASSEXTEND = "native nativesdk" -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#229112): https://lists.openembedded.org/g/openembedded-core/message/229112 Mute This Topic: https://lists.openembedded.org/mt/117174298/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
