]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
numactl: use libtool to install test binaries
authorRoss Burton <ross.burton@arm.com>
Fri, 9 Jan 2026 13:11:25 +0000 (13:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Jan 2026 10:16:17 +0000 (10:16 +0000)
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>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/numactl/numactl_2.0.19.bb

index 5ac9380c6cb81a2ab0e9f7e79a4427303c386bfb..38c09199c30864de143d0a7fea8bdb54ba536dbc 100644 (file)
@@ -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"