mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
configure: unset harmful environment variables
Apart from CLICOLOR_FORCE and GREP_OPTIONS, there are other variables that are listed in the Autoconf manual. While Autoconf neutralizes them very early, and assumes it does not (yet) run in a shell that has "unset", QEMU assumes that the user invoked configure under a POSIX shell, and therefore can simply use "unset" to clear them. CDPATH is particularly nasty because it messes up "cd ... && pwd". Reported-by: Juan Quintela <quintela@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
eea2d14117
commit
5b507233e6
1 changed files with 2 additions and 3 deletions
5
configure
vendored
5
configure
vendored
|
@ -4,9 +4,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Unset some variables known to interfere with behavior of common tools,
|
# Unset some variables known to interfere with behavior of common tools,
|
||||||
# just as autoconf does.
|
# just as autoconf does. Unlike autoconf, we assume that unset exists.
|
||||||
CLICOLOR_FORCE= GREP_OPTIONS=
|
unset CLICOLOR_FORCE GREP_OPTIONS BASH_ENV ENV MAIL MAILPATH CDPATH
|
||||||
unset CLICOLOR_FORCE GREP_OPTIONS
|
|
||||||
|
|
||||||
# Don't allow CCACHE, if present, to use cached results of compile tests!
|
# Don't allow CCACHE, if present, to use cached results of compile tests!
|
||||||
export CCACHE_RECACHE=yes
|
export CCACHE_RECACHE=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue