gcc: 13.2.0 -> 14.1.0

This commit is contained in:
Tim Biermann 2024-05-19 15:22:13 +02:00
parent 2793782fbf
commit 48d593b9d2
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 1646 additions and 1566 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
untrusted comment: verify with /etc/ports/core.pub untrusted comment: verify with /etc/ports/core.pub
RWRJc1FUaeVeqp4I6AWnao4iMAWhRcu4pnegOMZ3MyuhlFm1ZBBGrWk4RWNu/12fwZtSoAycSqp1YkE79d5ykOOqQ2e1FVcbcAc= RWRJc1FUaeVeqrtHfLmJ3xu4iOLpmhxk2UsQ30+33uT9h+BXPHohBIM94VFmimPmcUnpALu/e/87/2eT4BSz3tC8fNXRFTns6gs=
SHA256 (Pkgfile) = 5a53cebcc500c345bebaab328f9b078e596f30cf71f66ac7ef6a4aa3f9e29487 SHA256 (Pkgfile) = 3738298eebe3a1bf2caee96b9493457db0b2fb2f6a97e212213736d4a081970f
SHA256 (.footprint) = 199179dc5f01316b9f105ba732b0b964fc7403ba46239790a23396f83de7ac06 SHA256 (.footprint) = 53f57c5b4c6d37a572425fee6b2acb9b6dd330ee0ccb7bac113d272521d02775
SHA256 (gcc-13.2.0.tar.xz) = e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da SHA256 (gcc-14.1.0.tar.xz) = e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
SHA256 (gcc-nocheck-fixincludes.patch) = 850a71d2c64b9f2bec31821bd972bf89c2d57764faf64948100eaf474fd63bbb SHA256 (gcc-nocheck-fixincludes.patch) = 850a71d2c64b9f2bec31821bd972bf89c2d57764faf64948100eaf474fd63bbb
SHA256 (gcc-4.7.3-multilib-dirs.patch) = 149b151999d0afad909ca0d1eaf1f9a81c9cd6499e56989ec4fc574d108eeef6 SHA256 (gcc-4.7.3-multilib-dirs.patch) = 149b151999d0afad909ca0d1eaf1f9a81c9cd6499e56989ec4fc574d108eeef6

View File

@ -1,10 +1,10 @@
# Description: The GNU Compiler Collection # Description: The GNU Compiler Collection
# URL: https://gcc.gnu.org # URL: https://gcc.gnu.org
# Maintainer: CRUX System Team, core-ports at crux dot nu # Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: libmpc zlib zstd # Depends on: libgmp libmpc libmpfr zlib zstd
name=gcc name=gcc
version=13.2.0 version=14.1.0
release=1 release=1
source=(https://sourceware.org/pub/gcc/releases/gcc-$version/$name-$version.tar.xz source=(https://sourceware.org/pub/gcc/releases/gcc-$version/$name-$version.tar.xz
$name-nocheck-fixincludes.patch $name-4.7.3-multilib-dirs.patch) $name-nocheck-fixincludes.patch $name-4.7.3-multilib-dirs.patch)
@ -13,7 +13,7 @@ build() {
patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch
patch -d $name-$version -p1 -i $SRC/$name-4.7.3-multilib-dirs.patch patch -d $name-$version -p1 -i $SRC/$name-4.7.3-multilib-dirs.patch
sed -i 's@\./fixinc\.sh@-c true@' gcc-$version/Makefile.in sed -e '/m64=/s/lib64/lib/' -i $SRC/$name-$version/gcc/config/i386/t-linux64
# pipe fails tests # pipe fails tests
CFLAGS=${CFLAGS/-pipe/} CFLAGS=${CFLAGS/-pipe/}
@ -24,11 +24,12 @@ build() {
../$name-$version/configure \ ../$name-$version/configure \
--prefix=/usr \ --prefix=/usr \
--libexecdir=/usr/lib \ --libexecdir=/usr/lib \
--with-build-config=bootstrap-lto \
--enable-stage1-languages=c,lto \
--enable-languages=c,c++,lto \
--enable-threads=posix \ --enable-threads=posix \
--with-build-config=bootstrap-lto \
--with-linker-hash-style=gnu \ --with-linker-hash-style=gnu \
--with-system-zlib \
--enable-languages=c,c++,lto \
--enable-stage1-languages=c,lto \
--enable-link-serialization=1 \ --enable-link-serialization=1 \
--enable-linker-build-id \ --enable-linker-build-id \
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
@ -36,13 +37,14 @@ build() {
--enable-clocale=gnu \ --enable-clocale=gnu \
--enable-shared \ --enable-shared \
--enable-lto \ --enable-lto \
--with-x=no \
--enable-multilib \ --enable-multilib \
--enable-plugin \ --enable-plugin \
--enable-default-pie \ --enable-default-pie \
--enable-default-ssp \ --enable-default-ssp \
--enable-host-pie \
--with-pkgversion="CRUX-x86_64-multilib" \ --with-pkgversion="CRUX-x86_64-multilib" \
--with-system-zlib \ --with-x=no \
--disable-fixincludes \
--disable-nls --disable-nls
make -O STAGE1_CFLAGS="-O2" \ make -O STAGE1_CFLAGS="-O2" \
@ -66,5 +68,9 @@ build() {
mv $PKG/usr/${D}/libstdc++.so.*-gdb.py $PKG/usr/share/gdb/auto-load/usr/${D} mv $PKG/usr/${D}/libstdc++.so.*-gdb.py $PKG/usr/share/gdb/auto-load/usr/${D}
done done
mkdir $PKG/usr/lib/bfd-plugins
ln -sfv ../../lib/gcc/$($PKG/usr/bin/gcc -dumpmachine)/14.1.0/liblto_plugin.so \
$PKG/usr/lib/bfd-plugins/
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib{,32}/{libstdc++.la,libsupc++.la} sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib{,32}/{libstdc++.la,libsupc++.la}
} }