From: Richard Purdie Date: Tue, 21 Nov 2006 17:46:14 +0000 (+0000) Subject: base.bbclass: Fix errors in none libtooled packages X-Git-Tag: rev_ivi_2015_02_04~32940 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7238811251dcad12be258082dba3b79b8d7a28e6;p=scm%2Fbb%2Ftizen-distro.git 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 --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 4c88e9a..2d13f43 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