classes/base.bbclass:
authorHolger Freyther <zecke@selfish.org>
Thu, 21 Jul 2005 21:22:30 +0000 (21:22 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Thu, 21 Jul 2005 21:22:30 +0000 (21:22 +0000)
   Change oe_libinstall (watch carefully):
   If the user requires the installation of a static library and it
   does not exist we want the user to notice and fail. I assume this
   was then intended purpose for the requirestatic variable.
   The matter for the dotlai (.lai) is a bit different. The system
   automatically detects the .la file and assumes it is libtool generated
   and wants to install the .lai file even if it does not exist. I think
   this is wrong and I change it to do the following:
   If it decides it has libtool it installs the .lai if it is present.
   (change the -o to -a)
   At least Qt Version 3 has a .la but no .lai in its library directory
   and oe_libinstall fails to install.

classes/base.bbclass

index 1da58a9..37254b9 100644 (file)
@@ -187,7 +187,7 @@ oe_libinstall() {
                __runcmd install -m 0644 $dota $destpath/
        fi
        dotlai=$libname.lai
-       if [ -f "$dotlai" -o -n "$libtool" ]; then
+       if [ -f "$dotlai" -a -n "$libtool" ]; then
                __runcmd install -m 0644 $dotlai $destpath/$libname.la
        fi