]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
Explicitly handle -z to encode knowledge that it takes an argument
authorAntti Kantee <pooka@iki.fi>
Mon, 14 Jul 2014 12:24:02 +0000 (12:24 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 14 Jul 2014 12:24:02 +0000 (12:24 +0000)
from Ian Jackson

app-tools/ld

index 89b226284d9a22922f8cf22f5f8003c6d85a2e9f..734c7040458a38967ac7e37fb4a7747a04d19248 100755 (executable)
@@ -12,7 +12,7 @@ unset march
 while [ $# != 0 ]; do
        a=$1; shift
        case "$a" in
-       [^-]*|-L*|-l*|-z|--whole-archive|--no-whole-archive)
+       [^-]*|-L*|-l*|--whole-archive|--no-whole-archive)
                outargs+=("$a")
                ;;
        -m)
@@ -22,6 +22,9 @@ while [ $# != 0 ]; do
        -o)
                outfile="$1"; shift || noshift
                ;;
+       -z)
+               outargs+=("$a" "$1"); shift || noshift
+               ;;
        --as-needed|--no-as-needed)
                ;;
        --stunt-final-script)