summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2006-09-12 22:46:33 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2006-09-12 22:46:33 +0000
commitacdbdd967b91b39e1c134e720213a7b195012890 (patch)
tree704030cfb3a155ab2e28e7463d549b40e1100e5b /classes/base.bbclass
parent7232b828c1a32ba503545838ec29366e13bf68db (diff)
base.bbclass(oe_libinstall): Handle shared libs basenames of which were
suffixed with version properly. * Sometimes soname of a shlib is overriden to contain extra version. If it's build by libtool, .la still has basename w/o suffix. This fix recognizes such case, and handles shlib installation properly (via libtool). * Example of this is smpeg_0.4.4+0.4.5cvs20040311 which builds libsmpeg-0.4, while still being linked as -lsmpeg. Fixes #1389.
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 80e0b82198..bb4abb9571 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -193,6 +193,13 @@ oe_libinstall() {
__runcmd cd $dir
lafile=$libname.la
+
+ # 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
+ fi
+
if [ -f "$lafile" ]; then
# libtool archive
eval `cat $lafile|grep "^library_names="`