configure: create native file with contents of $host_cc
commit3c7ee49b81d2fc2930c09f9e0206227516d406e1
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Jul 2023 14:12:19 +0000 (7 16:12 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Sep 2023 11:32:14 +0000 (7 13:32 +0200)
tree66c445b0ba1d11f545988454a75149839e62f7f4
parentb3403ed00b0dbf14a77d6a7be797861e7b7f4907
configure: create native file with contents of $host_cc

The argument of --host-cc is not obeyed when cross compiling.  To avoid
this issue, place it in a configuration file and pass it to meson
with --native-file.

While at it, clarify that --host-cc is not obeyed anyway when _not_
cross compiling, because cc="$host_cc" is placed before --host-cc is
processed.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure