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/numactl/numactl_2.0.19.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-support/numactl/numactl_2.0.19.bb 
b/meta/recipes-support/numactl/numactl_2.0.19.bb
index 5ac9380c6c..38c09199c3 100644
--- a/meta/recipes-support/numactl/numactl_2.0.19.bb
+++ b/meta/recipes-support/numactl/numactl_2.0.19.bb
@@ -40,7 +40,7 @@ do_install_ptest() {
 
     [ ! -d ${D}/${PTEST_PATH}/test ] && mkdir -p ${D}/${PTEST_PATH}/test
     for i in $test_binaries; do
-        install -m 0755 ${B}/test/.libs/$i ${D}${PTEST_PATH}/test
+        ${B}/libtool --mode=install install -m 0755 ${B}/test/$i 
${D}${PTEST_PATH}/test
     done
 
     local test_scripts="checktopology checkaffinity printcpu regress regress2 \
@@ -50,7 +50,7 @@ do_install_ptest() {
     done
 
     install -m 0755 ${UNPACKDIR}/Makefile ${D}${PTEST_PATH}/
-    install -m 0755 ${B}/.libs/numactl ${D}${PTEST_PATH}/
+    ${B}/libtool --mode=install install -m 0755 ${B}/numactl ${D}${PTEST_PATH}/
 }
 
 RDEPENDS:${PN}-ptest = "bash"
-- 
2.43.0

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

Reply via email to