From: Ross Burton Date: Fri, 9 Jan 2026 13:11:26 +0000 (+0000) Subject: popt: use libtool to install test binaries X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=704cdf573b72a02bc8cc71485bbf6a3dacb00bae;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git popt: use libtool to install test binaries 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 Signed-off-by: Antonin Godard Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-support/popt/popt_1.19.bb b/meta/recipes-support/popt/popt_1.19.bb index b1d8bea790e..525bf553b10 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"