From b10a34ddd187c390edd8c13b846a6d1201274233 Mon Sep 17 00:00:00 2001 From: Aaron <10217842+byteduck@users.noreply.github.com> Date: Thu, 11 Apr 2024 18:44:05 -0700 Subject: [PATCH] Install headers before building GCC --- toolchain/build-toolchain.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolchain/build-toolchain.sh b/toolchain/build-toolchain.sh index 51347328..a90c8dd0 100755 --- a/toolchain/build-toolchain.sh +++ b/toolchain/build-toolchain.sh @@ -80,14 +80,14 @@ build_gcc () { cd "gcc-$GCC_VERSION-build" "$CONFIGURE_SCRIPT" --prefix="$PREFIX" --target="$TARGET" --disable-nls --enable-languages=c,c++ --with-sysroot="$SYSROOT" --enable-shared "${extra_config_args[@]}" || exit 1 + install_headers + msg "Making gcc..." make -j "$NUM_JOBS" all-gcc all-target-libgcc || exit 1 msg "Installing gcc..." make install-gcc install-target-libgcc || exit 1 success "Installed gcc!" - install_headers - msg "Making libstdc++..." make -j "$NUM_JOBS" all-target-libstdc++-v3 || exit 1 msg "Installing libstdc++..."