2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00

gcc: unhardcode version

This commit is contained in:
Dylan Araps 2020-05-15 21:35:37 +03:00
parent 3b8f56eb11
commit cc3efab794
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -14,10 +14,10 @@ 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"
< "$KISS_ROOT/var/db/kiss/installed/gcc/version" || gcc_version=null
# Skip the bootstrap process if we are able.
case $gcc_version in 10)
case $2 in "$gcc_version"*)
printf '%s\n' "Minor version difference, disabling bootstrap."
bootstrap=--disable-bootstrap
esac
@ -69,6 +69,6 @@ install -Dm755 ../c99 "$1/usr/bin/c99"
{
mkdir -p "$1/usr/lib/bfd-plugins"
ln -s /usr/lib/gcc/x86_64-pc-linux-musl/10.1.0/liblto_plugin.so \
ln -s "/usr/lib/gcc/x86_64-pc-linux-musl/$2/liblto_plugin.so" \
"$1/usr/lib/bfd-plugins/liblto_plugin.so"
}