aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-11-05 10:08:43 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-11-08 12:20:05 +0100
commit8009da037418d454d4833e7d3c3367f2f4d7244a (patch)
treee79750e9a135349e17565595e255abe4aaa31346 /configure
parentac7ebcc589757af7de0a7cba68126a80224fb989 (diff)
downloadqemu-8009da037418d454d4833e7d3c3367f2f4d7244a.zip
qemu-8009da037418d454d4833e7d3c3367f2f4d7244a.tar.gz
qemu-8009da037418d454d4833e7d3c3367f2f4d7244a.tar.bz2
configure: preserve CFLAGS, CXXFLAGS and LDFLAGS in config.status
CFLAGS, CXXFLAGS and LDFLAGS influence the tests (for example if they include -L or -I options), so they should be kept from the invocation of configure to the subsequent reinvocations via config.status. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 369b545..d268f59 100755
--- a/configure
+++ b/configure
@@ -4057,9 +4057,12 @@ preserve_env AR
preserve_env AS
preserve_env CC
preserve_env CPP
+preserve_env CFLAGS
preserve_env CXX
+preserve_env CXXFLAGS
preserve_env INSTALL
preserve_env LD
+preserve_env LDFLAGS
preserve_env LD_LIBRARY_PATH
preserve_env LIBTOOL
preserve_env MAKE