From 8092111b9daf2a33760cc9e5ed54872bbddca8cf Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 14 Dec 2023 16:10:23 -0600 Subject: [PATCH] Add second stage toolchain to command line dependencies. Because we statically link the binaries against musl-libc, we need a musl-libc toolchain for the host. (Static linking is broken on modern glibc.) The -host toolchain we build first has various shortcuts to remove incestuous dependencies, and the result is mostly good for building the full toolchain. (Because gcc is rickety and overcomplicated. Yes there's a pattern here: "If it starts with g, scream and flee...") Thus non-host toolchains need the full host toolchain to (reliably) build, and if you did a fresh clone and built a specific toolchain ala "~/toybox/scripts/mcm-buildall.sh or1k::" it needs both host toolchains, so add it as a dependency when you specify toolchains to build on the command line. (In theory, if the toolchain exists it shouldn't rebuild it. You have to rm -rf the corresponding dir/sqf out of ccc to force a rebuild.) --- scripts/mcm-buildall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mcm-buildall.sh b/scripts/mcm-buildall.sh index 27a0e34b..b8cefc2c 100755 --- a/scripts/mcm-buildall.sh +++ b/scripts/mcm-buildall.sh @@ -313,7 +313,7 @@ BOOTSTRAP="$TARGET" if [ $# -gt 0 ] then - for i in "$@" + for i in "${TARGETS[0]}" "$@" do make_tuple "$i" static native done -- 2.39.2