From 01b1dbaefdfcb78aef2f5a480046b56a04f90e6f Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 21 Nov 2006 17:46:14 +0000 Subject: 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 --- meta/classes/base.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'meta/classes/base.bbclass') diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 4c88e9a6b7..2d13f43788 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 -- cgit v1.2.3