1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

autotools.bbclass: Fix so libraries in directories are handled correctly with oe_libinstall, fixing staging QA issues. Thanks go to Ross for the basic patch.

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3618 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2008-01-29 17:59:33 +00:00
parent 4469013749
commit 3b79bc69b2
+18 -8
View File
@@ -175,14 +175,24 @@ autotools_stage_all() {
fi fi
if [ -d ${STAGE_TEMP}/${libdir} ] if [ -d ${STAGE_TEMP}/${libdir} ]
then then
for i in ${STAGE_TEMP}/${libdir}/*.la cd ${STAGE_TEMP}/${libdir}
do las=$(find . -name \*.la -type f)
if [ ! -f "$i" ]; then echo "Found la files: $las"
cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR} if [ -n "$las" ]; then
break # If there are .la files then libtool was used in the
fi # build, so install them with magic mangling.
oe_libinstall -so $(basename $i .la) ${STAGING_LIBDIR} for i in $las
done do
dir=$(dirname $i)
echo "oe_libinstall -C ${S} -so $(basename $i .la) ${STAGING_LIBDIR}/${dir}"
oe_libinstall -C ${S} -so $(basename $i .la) ${STAGING_LIBDIR}/${dir}
done
else
# Otherwise libtool wasn't used, and lib/ can be copied
# directly.
echo "cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}"
cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}
fi
fi fi
if [ -d ${STAGE_TEMP}/${datadir}/aclocal ]; then if [ -d ${STAGE_TEMP}/${datadir}/aclocal ]; then
install -d ${STAGING_DATADIR}/aclocal install -d ${STAGING_DATADIR}/aclocal