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

index dbe789b4e65b133b0e301abaa1bd0292524e05a1..fbf9f2dbac3d5a138baa97408db5eda28805b1a4 100644 (file)
@@ -23,10 +23,10 @@ EXTRA_OECONF = "--enable-shared"
 
 do_install_ptest() {
        t=${D}${PTEST_PATH}
-       cp ${S}/util/check.sh $t
-       cp ${B}/minilzo/testmini $t
-       for i in tests/align tests/chksum lzotest/lzotest examples/simple
-               do cp ${B}/`dirname $i`/.libs/`basename $i` $t; \
+       install ${S}/util/check.sh $t
+       install ${B}/minilzo/testmini $t
+       for i in tests/align tests/chksum lzotest/lzotest examples/simple; do
+               ${B}/libtool --mode=install install ${B}/$i $t
        done
 }