3 ## Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
5 ## Use of this source code is governed by a BSD-style license and patent
6 ## grant that can be found in the LICENSE file in the root of the source
7 ## tree. All contributing project authors may be found in the AUTHORS
8 ## file in the root of the source tree.
15 if [ "$i" == "-o" ]; then
17 elif [ "$i" == "-v" ]; then
19 elif [ "$on_of" == "1" ]; then
22 elif [ -f "$i" ]; then
24 elif [ "${i:0:2}" == "-l" ]; then
26 elif [ "${i:0:2}" == "-L" ]; then
27 libpaths
="${libpaths} ${i#-L}"
34 # Absolutize library file names
37 for d
in $libpaths; do
38 [ -f "$d/$f" ] && infiles
="$infiles $d/$f" && found
=1 && break
39 [ -f "$d/lib${f}.so" ] && infiles
="$infiles $d/lib${f}.so" && found
=1 && break
40 [ -f "$d/lib${f}.a" ] && infiles
="$infiles $d/lib${f}.a" && found
=1 && break
42 [ $found -eq 0 ] && infiles
="$infiles $f"
44 for d
in $libpaths; do
45 [ -n "$libsearchpath" ] && libsearchpath
="${libsearchpath},"
46 libsearchpath
="${libsearchpath}$d"
49 cmd
="armlink $args --userlibpath=$libsearchpath --output=$outfile $infiles"
50 [ $verbose -eq 1 ] && echo $cmd