diff mbox series

[09/11] parted: use libtool to install test binaries

Message ID 20260109131130.3006446-9-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-extended/parted/parted_3.6.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-extended/parted/parted_3.6.bb b/meta/recipes-extended/parted/parted_3.6.bb
index 6fc2cb3b3a..8f703d162f 100644
--- a/meta/recipes-extended/parted/parted_3.6.bb
+++ b/meta/recipes-extended/parted/parted_3.6.bb
@@ -45,8 +45,8 @@  do_install_ptest() {
 	    -e "s|^Makefile:.*|Makefile:|g" \
 	    -e "/^BUILDINFO.*$/d" \
 	    -i $t/tests/Makefile
-	for i in print-align print-max print-flags dup-clobber duplicate fs-resize; \
-	  do cp ${B}/tests/.libs/$i $t/tests/; \
+	for i in print-align print-max print-flags dup-clobber duplicate fs-resize; do
+		${B}/libtool --mode=install install ${B}/tests/$i $t/tests/
 	done
 	sed -e 's| ../parted||' -i $t/tests/*.sh
 }