From 8cddf22d4daf9e11c644b993c530b2e4399c2adc Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Sun, 23 Aug 2026 15:27:01 +0200 Subject: [PATCH] libevent: use libtool to install test binaries 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) (From OE-Core rev: 9d8cfd0d991cc03afe26983abe16dcb5ca341898) Signed-off-by: Ross Burton Signed-off-by: Antonin Godard Signed-off-by: Richard Purdie (From OE-Core rev: 1dc0e5e240adf61561c899108d2fb5be71e648e4) Signed-off-by: Peter Marko Signed-off-by: Yoann Congal Signed-off-by: Richard Purdie --- meta/recipes-support/libevent/libevent_2.1.12.bb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/meta/recipes-support/libevent/libevent_2.1.12.bb b/meta/recipes-support/libevent/libevent_2.1.12.bb index 25388fb4d7..be690fe94e 100644 --- a/meta/recipes-support/libevent/libevent_2.1.12.bb +++ b/meta/recipes-support/libevent/libevent_2.1.12.bb @@ -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 }