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>
This commit is contained in:
Paolo Bonzini 2021-11-05 10:08:43 +01:00
parent ac7ebcc589
commit 8009da0374

3
configure vendored
View File

@ -4057,9 +4057,12 @@ preserve_env AR
preserve_env AS preserve_env AS
preserve_env CC preserve_env CC
preserve_env CPP preserve_env CPP
preserve_env CFLAGS
preserve_env CXX preserve_env CXX
preserve_env CXXFLAGS
preserve_env INSTALL preserve_env INSTALL
preserve_env LD preserve_env LD
preserve_env LDFLAGS
preserve_env LD_LIBRARY_PATH preserve_env LD_LIBRARY_PATH
preserve_env LIBTOOL preserve_env LIBTOOL
preserve_env MAKE preserve_env MAKE