gcc: 10.3.0 -> 11.2.0

This commit is contained in:
Tim Biermann 2021-12-11 19:32:44 +01:00
parent 514d062693
commit 0399a7a7c8
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 1527 additions and 1485 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
RWRJc1FUaeVeqqgjsJUC4lChIzSFru1iE8fJ5EKqr7zVZWVkYVNjbsJQVx/f+EMtIIJ9gbaabiHC/qycnSOahmsYgZk5Ri4pQgw=
SHA256 (Pkgfile) = 9ab3e3a74da685a2539e021d2443a7f282ff4e47504a7ff9b86a75bcea311327
SHA256 (.footprint) = 9eb4640415822db0988891e34f931e78f7366abcda21339cdea2e03b98879561
SHA256 (gcc-10.3.0.tar.xz) = 64f404c1a650f27fc33da242e1f2df54952e3963a49e06e73f6940f3223ac344
RWRJc1FUaeVeqvgEiPd62tBrQUsx44MtnU45Zi5us1zE/Off/jjuSpzMxtN81QIS34TJjxlhHTVVxA//cVgKHoo9iSPt6EQQxw4=
SHA256 (Pkgfile) = f62bac88bea515733752a0c3c169e8b07b1cccb19cace159fa778d17236c9893
SHA256 (.footprint) = 0ef47247dcb35c845297174e335713879b5ea8a6f4183622e5aa2f702f897d78
SHA256 (gcc-11.2.0.tar.xz) = d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b
SHA256 (gcc-nocheck-fixincludes.patch) = 850a71d2c64b9f2bec31821bd972bf89c2d57764faf64948100eaf474fd63bbb
SHA256 (gcc-4.7.3-multilib-dirs.patch) = 149b151999d0afad909ca0d1eaf1f9a81c9cd6499e56989ec4fc574d108eeef6

View File

@ -4,30 +4,40 @@
# Depends on: zlib libmpc zstd
name=gcc
version=10.3.0
version=11.2.0
release=1
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$version/$name-$version.tar.xz \
$name-nocheck-fixincludes.patch $name-4.7.3-multilib-dirs.patch)
build() {
# fix libasan.a
sed -e '/static.*SIGSTKSZ/d' \
-e 's/return kAltStackSize/return SIGSTKSZ * 4/' \
-i $name-$version/libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp
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
# pipe fails tests
CFLAGS=${CFLAGS/-pipe/}
CXXFLAGS=${CXXFLAGS/-pipe/}
mkdir build
cd build
../$name-$version/configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-languages=c,c++,objc \
--enable-languages=c,c++,lto \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-shared \
--enable-lto \
--disable-nls \
--with-x=no \
--with-system-zlib \
--enable-multilib \
--enable-plugin \
--enable-default-pie \
--enable-default-ssp \
--with-pkgversion="CRUX-x86_64-multilib"
@ -40,9 +50,9 @@ build() {
ln -sf g++ $PKG/usr/bin/c++
mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/
rm -r $PKG/usr/share/{info,$name-$version}
rm -r $PKG/usr/share/{info,$name-$version}
rm -r $PKG/usr/bin/*-linux-gnu-*
rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}
rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}
for D in lib{,32}; do
install -d -m 0755 $PKG/usr/share/gdb/auto-load/usr/${D}