From d8f47b194d55dfb31a116106032eaf81bdf5656e Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 27 Oct 2012 11:19:22 +0200 Subject: [PATCH] depcomp: avoid potential interferences from the environment * lib/depcomp (gccflag, dashmflag): By explicitly initializing these variables to the empty string by default. Signed-off-by: Stefano Lattarini --- lib/depcomp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/depcomp b/lib/depcomp index 693fe04..e1f51f4 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -74,6 +74,9 @@ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" +# Avoid interferences from the environment. +gccflag= dashmflag= + # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case -- 2.7.4