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

Also use install instead of cp to install more files.

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/libpcre/libpcre_8.45.bb

index 67327065e49514a9697e6719f1632834844a8bf8..c5ecbd8cf2e9b75f0dec92e6f9ca3babfb09c3b5 100644 (file)
@@ -59,11 +59,11 @@ do_install_ptest() {
        t=${D}${PTEST_PATH}
        cp ${UNPACKDIR}/Makefile $t
        cp -r ${S}/testdata $t
-       for i in pcre_stringpiece_unittest pcregrep pcretest; \
-         do cp ${B}/.libs/$i $t; \
+       for i in pcre_stringpiece_unittest pcregrep pcretest; do
+               ${B}/libtool --mode=install install ${B}/$i $t/
        done
-       for i in RunTest RunGrepTest test-driver; \
-         do cp ${S}/$i $t; \
+       for i in RunTest RunGrepTest test-driver; do
+               install ${S}/$i $t
        done
        # Skip the fr_FR locale test. If the locale fr_FR is found, it is tested.
        # If not found, the test is skipped. The test program assumes fr_FR is non-UTF-8