ports: Update GCC 15.1.0->15.2.0

This commit is contained in:
2025-08-25 19:03:43 +03:00
parent 2db42dfb2e
commit b904503691
4 changed files with 14 additions and 223 deletions

View File

@@ -1,10 +1,9 @@
#!/bin/bash ../install.sh
NAME='gcc'
VERSION='15.1.0'
DOWNLOAD_URL="https://ftp.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.gz#51b9919ea69c980d7a381db95d4be27edf73b21254eb13d752a08003b4d013b1"
VERSION='15.2.0'
DOWNLOAD_URL="https://ftp.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.xz#438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e"
DEPENDENCIES=('binutils' 'gmp' 'mpfr' 'mpc')
MAKE_BUILD_TARGETS=('all-gcc' 'all-target-libgcc' 'all-target-libstdc++-v3')
MAKE_INSTALL_TARGETS=('install-strip-gcc' 'install-strip-target-libgcc' 'install-strip-target-libstdc++-v3')
CONFIGURE_OPTIONS=(
"--target=$BANAN_TOOLCHAIN_TRIPLE"
@@ -18,6 +17,17 @@ CONFIGURE_OPTIONS=(
'--enable-languages=c,c++'
)
build() {
xcflags=""
if [ $BANAN_ARCH = "x86_64" ]; then
xcflags="-mcmodel=large -mno-red-zone"
fi
make -j$(nproc) all-gcc || exit 1
make -j$(nproc) all-target-libgcc CFLAGS_FOR_TARGET="$xcflags" || exit 1
make -j$(nproc) all-target-libstdc++-v3 || exit 1
}
post_install() {
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libstdc++.la

View File

@@ -1 +0,0 @@
../../../toolchain/gcc-15.1.0.patch

View File

@@ -0,0 +1 @@
../../../toolchain/gcc-15.2.0.patch