77# you may not use this file except in compliance with the License.
88# You may obtain a copy of the License at
99#
10- # http://www.apache.org/licenses/LICENSE-2.0
10+ # http://www.apache.org/licenses/LICENSE-2.0
1111#
1212# Unless required by applicable law or agreed to in writing, software
1313# distributed under the License is distributed on an "AS IS" BASIS,
@@ -27,8 +27,8 @@ source $_SCRIPTDIR/common-files/termux_download.sh
2727: ${_TMP_DIR:= $_SCRIPTDIR / tmp}
2828: ${_API_LEVEL:= 21}
2929: ${_MAKE_PROCESSES:= $(nproc)}
30- : ${GCC_VERSION:= 12.1 .0}
31- : ${GCC_SHA256:= e88a004a14697bbbaba311f38a938c716d9a652fd151aaaa4cf1b5b99b90e2de }
30+ : ${GCC_VERSION:= 12.2 .0}
31+ : ${GCC_SHA256:= ac6b317eb4d25444d87cf29c0d141dedc1323a1833ec9995211b13e1a851261c }
3232: ${BINUTILS_VERSION:= 2.39}
3333: ${BINUTILS_SHA256:= d12ea6f239f1ffe3533ea11ad6e224ffcb89eb5d01bbea589e9158780fa11f10}
3434
@@ -114,33 +114,33 @@ export CPPFLAGS="-D__ANDROID_API__=$_API_LEVEL"
114114export CXXFLAGS=" -D__ANDROID_API__=$_API_LEVEL "
115115
116116$GCC_SRC_DIR /configure \
117- --host=x86_64-linux-gnu \
118- --build=x86_64-linux-gnu \
119- --target=$_HOST_PLATFORM \
120- --disable-shared \
121- --disable-nls \
122- --enable-default-pie \
123- --with-host-libstdcxx=' -static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
124- --with-gnu-as --with-gnu-ld \
125- --disable-libstdc__-v3 \
126- --disable-tls \
127- --disable-ssp \
128- --disable-bootstrap \
129- --enable-initfini-array \
130- --enable-libatomic-ifuncs=no \
131- --prefix=$_TMP_DIR /newer-toolchain \
132- --with-gmp --with-mpfr --with-mpc --with-system-zlib \
133- --enable-languages=c,c++,fortran \
134- --enable-plugins --enable-libgomp \
135- --enable-gnu-indirect-function \
136- --disable-libcilkrts --disable-libsanitizer \
137- --enable-gold --enable-threads \
138- --enable-eh-frame-hdr-for-static \
139- --enable-graphite=yes --with-isl \
140- --disable-multilib \
141- $_GCC_EXTRA_HOST_BUILD \
142- --with-sysroot=$_TMP_DIR /newer-toolchain/sysroot \
143- --with-gxx-include-dir=$_TMP_DIR /newer-toolchain/include/c++/$GCC_VERSION
117+ --host=x86_64-linux-gnu \
118+ --build=x86_64-linux-gnu \
119+ --target=$_HOST_PLATFORM \
120+ --disable-shared \
121+ --disable-nls \
122+ --enable-default-pie \
123+ --with-host-libstdcxx=' -static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
124+ --with-gnu-as --with-gnu-ld \
125+ --disable-libstdc__-v3 \
126+ --disable-tls \
127+ --disable-ssp \
128+ --disable-bootstrap \
129+ --enable-initfini-array \
130+ --enable-libatomic-ifuncs=no \
131+ --prefix=$_TMP_DIR /newer-toolchain \
132+ --with-gmp --with-mpfr --with-mpc --with-system-zlib \
133+ --enable-languages=c,c++,fortran \
134+ --enable-plugins --enable-libgomp \
135+ --enable-gnu-indirect-function \
136+ --disable-libcilkrts --disable-libsanitizer \
137+ --enable-gold --enable-threads \
138+ --enable-eh-frame-hdr-for-static \
139+ --enable-graphite=yes --with-isl \
140+ --disable-multilib \
141+ $_GCC_EXTRA_HOST_BUILD \
142+ --with-sysroot=$_TMP_DIR /newer-toolchain/sysroot \
143+ --with-gxx-include-dir=$_TMP_DIR /newer-toolchain/include/c++/$GCC_VERSION
144144
145145make -j $_MAKE_PROCESSES
146146make -j $_MAKE_PROCESSES install-strip
0 commit comments