base.bbclass: Fix errors in none libtooled packages

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@935 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2006-11-21 17:46:14 +00:00
parent 450aea724e
commit 01b1dbaefd

View File

@@ -196,8 +196,12 @@ oe_libinstall() {
# If such file doesn't exist, try to cut version suffix
if [ ! -f "$lafile" ]; then
libname=`echo "$libname" | sed 's/-[0-9.]*$//'`
lafile=$libname.la
libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
lafile1=$libname.la
if [ -f "$lafile1" ]; then
libname=$libname1
lafile=$lafile1
fi
fi
if [ -f "$lafile" ]; then