summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPaolo Bonzini2022-07-29 00:21:32 +0200
committerPaolo Bonzini2022-07-29 00:22:19 +0200
commitebc55f523c2f406e30ec8fad77bd3b9aad5d4579 (patch)
tree7741fabe46ffd3906bd43d157cfb582e0a337148 /configure
parentkvm: don't use perror() without useful errno (diff)
downloadqemu-ebc55f523c2f406e30ec8fad77bd3b9aad5d4579.tar.gz
qemu-ebc55f523c2f406e30ec8fad77bd3b9aad5d4579.tar.xz
qemu-ebc55f523c2f406e30ec8fad77bd3b9aad5d4579.zip
configure: pass correct cflags to container-based cross compilers
probe_target_compiler returns nonempty $target_cc for installed toolchains and $container_cross_cc for container-based toolchains. In both cases however the flags (coming from $cross_cc_cflags_${target_arch}) must be in $target_cflags. Therefore, do not clear them prior to returning from probe_target_compiler. Reported-by: Taylor Simpson <tsimpson@quicinc.com> Fixes: 92e288fcfb ("build: try both native and cross compilers", 2022-07-08) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 0 insertions, 1 deletions
diff --git a/configure b/configure
index c4c02b8438..72ab03f11a 100755
--- a/configure
+++ b/configure
@@ -2173,7 +2173,6 @@ probe_target_compiler() {
build_static=
target_cc=
target_ccas=
- target_cflags=
target_ar=
target_as=
target_ld=