Skip to content

Commit

Permalink
Musl: use default GCC version
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Nov 26, 2024
1 parent 3d8a940 commit 388d4e9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions steps/01-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,29 @@ case "$TARGET_OS" in
case "$TARGET_CPU" in
x86)
MUSL_VERSION="i686-linux-musl-cross"
PACKAGES="g++-10 g++-10-multilib"
PACKAGES="g++ g++-multilib"
;;

x64)
MUSL_VERSION="x86_64-linux-musl-cross"
PACKAGES="g++-10"
PACKAGES="g++"
;;

arm)
MUSL_VERSION="arm-linux-musleabihf-cross"
PACKAGES="g++-10"
PACKAGES="g++"
;;

arm64)
MUSL_VERSION="aarch64-linux-musl-cross"
PACKAGES="g++-10"
PACKAGES="g++"
;;
esac

[ -d "$MUSL_VERSION" ] || curl -L "$MUSL_URL/$MUSL_VERSION.tgz" | tar xz
echo "$PWD/$MUSL_VERSION/bin" >> "$PATH_FILE"

sudo apt-get install -y $PACKAGES
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10

else

Expand Down

0 comments on commit 388d4e9

Please sign in to comment.