Makefile: Unexport TAR_OPTIONS

GNU tar > 1.13.17 interprets TAR_OPTIONS as an environment variable
containing options to be prepended to the set on the command line.

Since we use the same variable, if the user's environment already
contains TAR_OPTIONS, our use of the same variable name modifies
the environment and causes untars to misbehave when TAR_OPTIONS
causes a -xf to be prepended to the tar command line, likely
converting a subsequent flag into a spurious filename.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Nix 2014-01-26 22:58:02 +00:00 committed by Peter Korsgaard
parent b392a24adb
commit f5437a6502

View File

@ -261,6 +261,7 @@ unexport CPP
unexport CFLAGS unexport CFLAGS
unexport CXXFLAGS unexport CXXFLAGS
unexport GREP_OPTIONS unexport GREP_OPTIONS
unexport TAR_OPTIONS
unexport CONFIG_SITE unexport CONFIG_SITE
unexport QMAKESPEC unexport QMAKESPEC
unexport TERMINFO unexport TERMINFO