We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc6177a commit 802e6edCopy full SHA for 802e6ed
install-gcc-14.sh
@@ -2,6 +2,7 @@
2
3
set -eu
4
5
+MAJOR_VER='14'
6
VER='14.2.0'
7
GCC_VER="gcc-${VER}"
8
apt -y install build-essential libmpfr-dev libgmp3-dev libmpc-dev
@@ -28,5 +29,5 @@ make install
28
29
30
set -x
31
-update-alternatives --install /usr/bin/g++-${VER} g++ ${PREFIX}/${GCC_VER}/bin/g++-${VER} 14
32
-update-alternatives --install /usr/bin/gcc-${VER} gcc ${PREFIX}/${GCC_VER}/bin/gcc-${VER} 14
+update-alternatives --install /usr/bin/g++-${MAJOR_VER} g++ ${PREFIX}/${GCC_VER}/bin/g++-${VER} 14
33
+update-alternatives --install /usr/bin/gcc-${MAJOR_VER} gcc ${PREFIX}/${GCC_VER}/bin/gcc-${VER} 14
0 commit comments