| Message ID | 20260109131130.3006446-5-ross.burton@arm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [01/11] libusb1: use libtool to install test binaries | expand |
diff --git a/meta/recipes-support/lzo/lzo_2.10.bb b/meta/recipes-support/lzo/lzo_2.10.bb index dbe789b4e6..fbf9f2dbac 100644 --- a/meta/recipes-support/lzo/lzo_2.10.bb +++ b/meta/recipes-support/lzo/lzo_2.10.bb @@ -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 }
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-support/lzo/lzo_2.10.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)