Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
gcc: Skip bootstrap if we are able
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed May 11, 2020
1 parent 5a446e4 commit d7d9eae
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/gcc/build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
mkdir -p gcc-build
cd gcc-build

# Grab the system's GCC version.
IFS=. read -r gcc_version _ 2>/dev/null \
< "$KISS_ROOT/var/db/kiss/installed/gcc/version"

# Skip the bootstrap process if we are able.
case $gcc_version in 10)
printf '%s\n' "Minor version difference, disabling bootstrap."
bootstrap=--disable-bootstrap
esac

export libat_cv_have_ifunc=no

../gcc/configure \
Expand All @@ -38,7 +48,8 @@ export libat_cv_have_ifunc=no
--enable-languages=c,c++ \
--without-included-gettext \
--with-system-zlib \
--build=x86_64-pc-linux-musl
--build=x86_64-pc-linux-musl \
"${bootstrap:---enable-bootstrap}"

make
make DESTDIR="$1" install
Expand Down

0 comments on commit d7d9eae

Please sign in to comment.