7 STRIP
=mipsel-uclibc-strip
18 UNR
=${DIR}/.unresolved
19 BINARIES
=`find $SEARCHDIR -path $SEARCHDIR/lib -prune -o -type f -print | file -f - | grep ELF | cut -d':' -f1`
21 if [ ! -f ${DIR}/${LIB_SO} ] ; then
22 echo "Cann't find ${DIR}/${LIB_SO}";
26 if [ ! -f ${DIR}/${LIB_A} ] ; then
27 echo "Cann't find ${DIR}/${LIB_A}";
35 $NM -o --defined-only --no-sort ${DIR}/${LIB_SO} | cut
-d' ' -f3 > $MAP
36 $NM --dynamic -u --no-sort $BINARIES |
sort -u > $UNR
37 for symbol
in `cat $UNR` ; do
38 if grep -q "^$symbol" $MAP ; then echo "-u $symbol" >> $SYM ;
42 xargs -t $LD -shared -o ${DIR}/${LIB_SO_M} ${DIR}/${LIB_A} < $SYM ;
45 if [ "a$INSTALLLIB" != "a" -a -f ${DIR}/${LIB_SO_M} ] ; then
46 install ${DIR}/${LIB_SO_M} $INSTALLLIB