diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2006-09-12 22:46:33 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2006-09-12 22:46:33 +0000 |
commit | acdbdd967b91b39e1c134e720213a7b195012890 (patch) | |
tree | 704030cfb3a155ab2e28e7463d549b40e1100e5b | |
parent | 7232b828c1a32ba503545838ec29366e13bf68db (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.
-rw-r--r-- | classes/base.bbclass | 7 |
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="` |