]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libusb1: use libtool to install test binaries
authorRoss Burton <ross.burton@arm.com>
Fri, 9 Jan 2026 13:11:20 +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/libusb/libusb1_1.0.29.bb

index 2f43ee68b70be2f146c981f82ca98d32205384f5..856e32d1c62c4cd61c19fb27692b7b11affbafa7 100644 (file)
@@ -42,7 +42,7 @@ do_compile_ptest() {
 }
 
 do_install_ptest() {
-    install -m 755 ${B}/tests/stress ${D}${PTEST_PATH}
+    ${B}/libtool --mode=install install ${B}/tests/stress ${D}${PTEST_PATH}
 }
 
 FILES:${PN} += "${base_libdir}/*.so.*"