From: Paolo Bonzini Date: Thu, 28 Jul 2022 22:21:32 +0000 (+0200) Subject: configure: pass correct cflags to container-based cross compilers X-Git-Tag: v7.1.0-rc1~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebc55f523c2f406e30ec8fad77bd3b9aad5d4579;p=thirdparty%2Fqemu.git 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 Fixes: 92e288fcfb ("build: try both native and cross compilers", 2022-07-08) Signed-off-by: Paolo Bonzini --- diff --git a/configure b/configure index c4c02b84387..72ab03f11aa 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=