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

index 2fadf109432a0afdd59484acfd57d231dabf7e1d..4e32b5217e97eca61e18e9eb7c2399e2f941a25c 100644 (file)
@@ -52,12 +52,8 @@ do_install:append() {
 }
 
 do_install_ptest() {
-       install -d ${D}${PTEST_PATH}/test
-       for file in ${B}/test/.libs/regress ${B}/test/.libs/test*
-       do
-               install -m 0755 $file ${D}${PTEST_PATH}/test
-       done
-
+        install -d ${D}${PTEST_PATH}/test
+        ${B}/libtool --mode=install install ${B}/test/regress ${D}${PTEST_PATH}/test/
         # handle multilib
         sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest
 }