diff options
author | Rob Landley <rob@landley.net> | 2023-12-14 16:10:23 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2023-12-14 16:10:23 -0600 |
commit | 8092111b9daf2a33760cc9e5ed54872bbddca8cf (patch) | |
tree | 55cfafcb0da6d91cfd27882f3d3c165708832945 /scripts | |
parent | ab046139f9d83136ff1cb143ee5923b3ee22a972 (diff) | |
download | toybox-8092111b9daf2a33760cc9e5ed54872bbddca8cf.tar.gz |
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.)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mcm-buildall.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |