linux: improve cross compilation with clang

set HOST* variables for host build tools
* do not assume the host compiler is gcc
* pass all build tools to make
This commit is contained in:
Michael Roitzsch
2021-05-10 10:24:24 +02:00
parent 50dd350c4c
commit 270ee17d41
2 changed files with 8 additions and 4 deletions
@@ -40,7 +40,7 @@ close ANSWERS;
sub runConfig {
# Run `make config'.
my $pid = open2(\*IN, \*OUT, "make -C $ENV{SRC} O=$buildRoot config SHELL=bash ARCH=$ENV{ARCH}");
my $pid = open2(\*IN, \*OUT, "make -C $ENV{SRC} O=$buildRoot config SHELL=bash ARCH=$ENV{ARCH} CC=$ENV{CC} HOSTCC=$ENV{HOSTCC} HOSTCXX=$ENV{HOSTCXX}");
# Parse the output, look for questions and then send an
# appropriate answer.