Changeset 2032:3a238d2456de in roaraudio


Ignore:
Timestamp:
06/20/09 23:09:53 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected algo to find libs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1992 r2032  
    434434 while [ "$1" != '--' ] 
    435435 do 
    436   [ "$1" != 'c' -a "$1" != '-lc' ] && LIBS="$LIBS -l$1" 
     436  case "$1" in 
     437   'c'|'-lc') 
     438    :; # no need to do anything 
     439   ;; 
     440   '-'*) 
     441    LIBS="$LIBS $1" 
     442   ;; 
     443   *) 
     444    LIBS="-l$1" 
     445   ;; 
     446  esac 
    437447  shift; 
    438448 done 
    439449 
    440450 shift; 
    441  
    442  LIBS=$(echo "$LIBS" | sed 's/-l-l/-l/g; s/-l-L/-L/g;') 
    443451 
    444452 echo "LIB($name) IS TESTED USING LIBS: $LIBS" >&5 
Note: See TracChangeset for help on using the changeset viewer.