Skip to content

Commit

Permalink
Install headers before building GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
byteduck committed Apr 12, 2024
1 parent 28c2662 commit b10a34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toolchain/build-toolchain.sh
Expand Up @@ -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++..."
Expand Down

0 comments on commit b10a34d

Please sign in to comment.