732 oe_soinstall() { 733 # Purpose: Install shared library file and 734 # create the necessary links 735 # Example: 736 # 737 # oe_ 738 # 739 #oenote installing shared library $1 to $2 740 # 741 libname=`basename $1` 742 install -m 755 $1 $2/$libname 743 sonamelink=`readelf -d $1 |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'` 744 solink=`echo $libname | sed -e 's/\.so\..*/.so/'` 745 ln -sf $libname $2/$sonamelink 746 ln -sf $libname $2/$solink 747 748 }