root / trunk / util / libtool.diff

Revision 344, 1.1 kB (checked in by saurik, 5 months ago)

Multiple find.sh matches were being handled poorly.

  • ltmain.sh

    old new  
    22132213          deplibs="$deplib $deplibs" 
    22142214          continue 
    22152215          ;; 
    2216         *.la) lib="$deplib" ;; 
     2216        *.la) lib="$("${PKG_BASE}/util/find.sh" "$deplib")"; lib="${lib%%:*}" ;; 
    22172217        *.$libext) 
    22182218          if test "$pass" = conv; then 
    22192219            deplibs="$deplib $deplibs" 
     
    28902890                if grep "^installed=no" $deplib > /dev/null; then 
    28912891                  path="$absdir/$objdir" 
    28922892                else 
    2893                   eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` 
     2893                  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' "$("${PKG_BASE}/util/find.sh" "$deplib")"` 
    28942894                  if test -z "$libdir"; then 
    28952895                    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 
    28962896                    exit $EXIT_FAILURE 
     
    56095609              case $deplib in 
    56105610              *.la) 
    56115611                name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` 
    5612                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` 
     5612                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' "$("${PKG_BASE}/util/find.sh" "$deplib")"` 
    56135613                if test -z "$libdir"; then 
    56145614                  $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 
    56155615                  exit $EXIT_FAILURE 
Note: See TracBrowser for help on using the browser.