]> git.ipfire.org Git - thirdparty/qemu.git/commit
configure: pass correct cflags to container-based cross compilers
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 22:21:32 +0000 (00:21 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 22:22:19 +0000 (00:22 +0200)
commitebc55f523c2f406e30ec8fad77bd3b9aad5d4579
tree7741fabe46ffd3906bd43d157cfb582e0a337148
parent47c182fe8b03c0c40059fb95840923e65c9bdb4f
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>
configure