From: Stefano Lattarini Date: Sat, 27 Oct 2012 09:19:22 +0000 (+0200) Subject: depcomp: avoid potential interferences from the environment X-Git-Tag: v1.12.5~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8f47b194d55dfb31a116106032eaf81bdf5656e;p=thirdparty%2Fautomake.git 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 --- diff --git a/lib/depcomp b/lib/depcomp index 693fe0496..e1f51f482 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