Fix build when TAR_OPTIONS env variable is set
authorJohn Crispin <john@openwrt.org>
Mon, 6 Oct 2014 04:53:14 +0000 (04:53 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 6 Oct 2014 04:53:14 +0000 (04:53 +0000)
commit8c6f9002297a1dad67c7bd1c3ee83373dfebf506
tree834ba8c1689db095e5bd94d2d54311ef175aa221
parent6f08bb26d01171bd743b1cde370d2ed399ba829e
Fix build when TAR_OPTIONS env variable is set

The build system sets a make variable TAR_OPTIONS to the unpacking
command, i.e. "-xf -". Now if an environment variable with the same
name is set, the make variable is automatically exported to the
environment. The make variable is added to the tar command in the
makefile, and tar adds the environment variable. This results in a
command like "tar -c /some/dir -xf - -xf -" which of course doesn't
work. It is also difficult to spot as the second "-xf -" is not
visible on the command line.
I suggest this is fixed by unexporting TAR_OPTIONS as I see no use
of the evironment variable, and it is changed from the original
value anyway.

Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
SVN-Revision: 42794
include/toplevel.mk