From 265d9b456d92908e8ff1596aa0a550198c6bfc5b Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Tue, 9 Oct 2012 18:50:05 +0200 Subject: [PATCH] Patch mkdep to make sure tested values are not mistaken as test flags. --- tools/host-mkdep/host-mkdep.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/host-mkdep/host-mkdep.in b/tools/host-mkdep/host-mkdep.in index 8512480d2..18a4f1c38 100644 --- a/tools/host-mkdep/host-mkdep.in +++ b/tools/host-mkdep/host-mkdep.in @@ -72,7 +72,7 @@ set_objlist() # (don't trust the shell builtin getopts to be in a known state on error) while [ $# -gt 0 ]; do option="${1#-}" - [ "$option" = "$1" -o -z "$option" ] && break + [ "x$option" = "x$1" -o -z "$option" ] && break while optarg="${option#?}" option="${option%$optarg}" -- 2.44.0