diff mbox series

[06/11] numactl: use libtool to install test binaries

Message ID 20260109131130.3006446-6-ross.burton@arm.com
State New
Headers show
Series [01/11] libusb1: use libtool to install test binaries | expand

Commit Message

Ross Burton Jan. 9, 2026, 1:11 p.m. UTC
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 <ross.burton@arm.com>
---
 meta/recipes-support/numactl/numactl_2.0.19.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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"