summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-21 17:46:14 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-21 17:46:14 +0000
commit01b1dbaefdfcb78aef2f5a480046b56a04f90e6f (patch)
tree3caaedee4afa3f6851f1c07588fcbe234eca33fa /meta
parent450aea724eac30317c0e8d77c7fc69e47f02ad7c (diff)
downloadopenembedded-core-01b1dbaefdfcb78aef2f5a480046b56a04f90e6f.tar.gz
openembedded-core-01b1dbaefdfcb78aef2f5a480046b56a04f90e6f.tar.bz2
openembedded-core-01b1dbaefdfcb78aef2f5a480046b56a04f90e6f.tar.xz
openembedded-core-01b1dbaefdfcb78aef2f5a480046b56a04f90e6f.zip
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
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/base.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 4c88e9a6b..2d13f4378 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -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