| ## Copyright (c) 2010 The VP8 project authors. All Rights Reserved. |
| ## Use of this source code is governed by a BSD-style license |
| ## that can be found in the LICENSE file in the root of the source |
| ## tree. An additional intellectual property rights grant can be found |
| ## in the file PATENTS. All contributing project authors may |
| ## be found in the AUTHORS file in the root of the source tree. |
| if [ "$i" == "-o" ]; then |
| elif [ "$i" == "-v" ]; then |
| elif [ "$on_of" == "1" ]; then |
| elif [ "${i:0:2}" == "-l" ]; then |
| elif [ "${i:0:2}" == "-L" ]; then |
| libpaths="${libpaths} ${i#-L}" |
| # Absolutize library file names |
| [ -f "$d/$f" ] && infiles="$infiles $d/$f" && found=1 && break |
| [ -f "$d/lib${f}.so" ] && infiles="$infiles $d/lib${f}.so" && found=1 && break |
| [ -f "$d/lib${f}.a" ] && infiles="$infiles $d/lib${f}.a" && found=1 && break |
| [ $found -eq 0 ] && infiles="$infiles $f" |
| [ -n "$libsearchpath" ] && libsearchpath="${libsearchpath}," |
| libsearchpath="${libsearchpath}$d" |
| cmd="armlink $args --userlibpath=$libsearchpath --output=$outfile $infiles" |
| [ $verbose -eq 1 ] && echo $cmd |