Translates -g from LDFLAGS as --debug in armlink_adapter.sh
authorAttila Nagy <attilanagy@google.com>
Fri, 4 Feb 2011 08:21:43 +0000 (10:21 +0200)
committerAttila Nagy <attilanagy@google.com>
Mon, 7 Feb 2011 06:58:19 +0000 (08:58 +0200)
Change-Id: I23ad88db2149ab788ff39aed8624a7ef0e97da2e

build/make/armlink_adapter.sh

index 571e46e..b53669c 100755 (executable)
@@ -17,15 +17,17 @@ for i; do
         on_of=1
     elif [ "$i" == "-v" ]; then
         verbose=1
+    elif [ "$i" == "-g" ]; then
+        args="${args} --debug"
     elif [ "$on_of" == "1" ]; then
         outfile=$i
-    on_of=0
+        on_of=0
     elif [ -f "$i" ]; then
         infiles="$infiles $i"
     elif [ "${i:0:2}" == "-l" ]; then
         libs="$libs ${i#-l}"
     elif [ "${i:0:2}" == "-L" ]; then
-    libpaths="${libpaths} ${i#-L}"
+        libpaths="${libpaths} ${i#-L}"
     else
         args="${args} ${i}"
     fi