3 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
5 ## Use of this source code is governed by a BSD-style license
6 ## that can be found in the LICENSE file in the root of the source
7 ## tree. An additional intellectual property rights grant can be found
8 ## in the file PATENTS. All contributing project authors may
9 ## be found in the AUTHORS file in the root of the source tree.
16 if [ "$i" == "-o" ]; then
18 elif [ "$i" == "-v" ]; then
20 elif [ "$i" == "-g" ]; then
21 args
="${args} --debug"
22 elif [ "$on_of" == "1" ]; then
25 elif [ -f "$i" ]; then
27 elif [ "${i:0:2}" == "-l" ]; then
29 elif [ "${i:0:2}" == "-L" ]; then
30 libpaths
="${libpaths} ${i#-L}"
37 # Absolutize library file names
40 for d
in $libpaths; do
41 [ -f "$d/$f" ] && infiles
="$infiles $d/$f" && found
=1 && break
42 [ -f "$d/lib${f}.so" ] && infiles
="$infiles $d/lib${f}.so" && found
=1 && break
43 [ -f "$d/lib${f}.a" ] && infiles
="$infiles $d/lib${f}.a" && found
=1 && break
45 [ $found -eq 0 ] && infiles
="$infiles $f"
47 for d
in $libpaths; do
48 [ -n "$libsearchpath" ] && libsearchpath
="${libsearchpath},"
49 libsearchpath
="${libsearchpath}$d"
52 cmd
="armlink $args --userlibpath=$libsearchpath --output=$outfile $infiles"
53 [ $verbose -eq 1 ] && echo $cmd