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>
-e "s|^Makefile:.*|Makefile:|g" \
-e "/^BUILDINFO.*$/d" \
-i $t/tests/Makefile
- for i in print-align print-max print-flags dup-clobber duplicate fs-resize; \
- do cp ${B}/tests/.libs/$i $t/tests/; \
+ for i in print-align print-max print-flags dup-clobber duplicate fs-resize; do
+ ${B}/libtool --mode=install install ${B}/tests/$i $t/tests/
done
sed -e 's| ../parted||' -i $t/tests/*.sh
}