]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
configure: preserve CFLAGS, CXXFLAGS and LDFLAGS in config.status
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Nov 2021 09:08:43 +0000 (10:08 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Nov 2021 11:20:05 +0000 (12:20 +0100)
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>
configure

index 369b5455b6dbd79cca9ccc683d3d706571a4f559..d268f59246498fe0adde5d768063494e08d42d67 100755 (executable)
--- 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