From 74d9202fcf7c4e1c62e606569b55321b217e5f29 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Mon, 14 Jul 2014 12:24:02 +0000 Subject: [PATCH] Explicitly handle -z to encode knowledge that it takes an argument from Ian Jackson --- app-tools/ld | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app-tools/ld b/app-tools/ld index 89b2262..734c704 100755 --- a/app-tools/ld +++ b/app-tools/ld @@ -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) -- 2.39.5