RE: [PATCH] configure: pass correct cflags to container-based cross compilers

2022-07-28 Thread Taylor Simpson
> -Original Message- > From: Richard Henderson > Sent: Thursday, July 28, 2022 5:11 PM > To: Paolo Bonzini ; qemu-devel@nongnu.org > Cc: Taylor Simpson > Subject: Re: [PATCH] configure: pass correct cflags to container-based cross > compilers > > On 7/28/22

Re: [PATCH] configure: pass correct cflags to container-based cross compilers

2022-07-28 Thread Richard Henderson
On 7/28/22 15:22, Paolo Bonzini wrote: 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 cl

[PATCH] configure: pass correct cflags to container-based cross compilers

2022-07-28 Thread Paolo Bonzini
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_ta