Skip to content
Snippets Groups Projects
Commit ebc55f52 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarTaylor Simpson <tsimpson@quicinc.com>
Fixes: 92e288fc ("build: try both native and cross compilers", 2022-07-08)
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 47c182fe
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment