configure: ignore preexisting QEMU_*FLAGS envvars
commitde38c0cc796047c5df97672921901be7251ec23b
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Nov 2021 07:58:23 +0000 (8 08:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Nov 2021 11:20:08 +0000 (8 12:20 +0100)
tree197dbc2d9423b047fc8ac080c242d7924a74c2b8
parenta2866660441f114188b7d1025a4a19cbb6188fef
configure: ignore preexisting QEMU_*FLAGS envvars

User flags should be passed via CFLAGS/CXXFLAGS/LDFLAGS,
or --extra-cflags/extra-cxxflags/--extra-ldflags on the
command line.

QEMU_CFLAGS, QEMU_CXXFLAGS and QEMU_LDFLAGS are reserved
for flags detected by configure, so do not add to them
and clear them at the beginning of the script.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure