crust: use host-gcc from toolchain not cc

crust build fails when cc link is missing (e.g. minimal Ubuntu 20.04)
use host-gcc from the toolchain instead.
addition of the patch fixes the following error.

BUILD      crust (target)
    TOOLCHAIN      manual
...
  HOSTCC  build/3rdparty/kconfig/conf.o
/bin/sh: 1: exec: cc: not found
make[1]: *** [Makefile:170: build/3rdparty/kconfig/conf.o] Error 127
...
This commit is contained in:
heitbaum 2021-12-07 11:42:22 +00:00
parent e698eec463
commit 91162691d4

View File

@ -0,0 +1,11 @@
--- a/Makefile 2021-11-04 02:18:49.000000000 +0000
+++ b/Makefile 2021-12-07 11:30:53.188269898 +0000
@@ -8,7 +8,7 @@
TGT = $(OBJ)/scp
BUILDAR = ar
-BUILDCC = cc
+BUILDCC = host-gcc
HOST_COMPILE ?= aarch64-linux-musl-
HOSTAR = $(HOST_COMPILE)gcc-ar