summaryrefslogtreecommitdiff
path: root/lib/depcomp
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-10-27 11:19:22 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-10-27 11:26:15 +0200
commitd8f47b194d55dfb31a116106032eaf81bdf5656e (patch)
treea8f91ae09dfbb007a442f3a2a953cf8affe34157 /lib/depcomp
parent078ff407c4b50309c65c7c8eb61d6b08f4d2577e (diff)
downloadautomake-d8f47b194d55dfb31a116106032eaf81bdf5656e.tar.gz
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 <stefano.lattarini@gmail.com>
Diffstat (limited to 'lib/depcomp')
-rwxr-xr-xlib/depcomp3
1 files changed, 3 insertions, 0 deletions
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