classes/base.bbclass: Make find call portable
authorHolger Freyther <zecke@selfish.org>
Sat, 5 Aug 2006 15:34:10 +0000 (15:34 +0000)
committerHolger Freyther <zecke@selfish.org>
Sat, 5 Aug 2006 15:34:10 +0000 (15:34 +0000)
    Make the find invocation portable (BSD) by specifying '.'
    as the to be searched directory.
    The error on libtool-native was:
        find: illegal option -- n
        find: illegal option -- a
        find: illegal option -- m
        find: illegal option -- e

classes/base.bbclass

index 85756ed..e36c3e3 100644 (file)
@@ -172,7 +172,7 @@ oe_libinstall() {
                dir=`pwd`
        fi
        dotlai=$libname.lai
-       dir=$dir`(cd $dir; find -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
+       dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
        olddir=`pwd`
        __runcmd cd $dir