gcc: update to 10.3.0

This commit is contained in:
Juergen Daubert 2021-04-09 15:00:32 +02:00
parent 2159a80d5e
commit 13c665c352
3 changed files with 1500 additions and 1498 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
RWRJc1FUaeVeqiH50ltcFUBL1uMuW+Fi8rKg43US+wnJ3kr9pQGqZZDNeUwgCvNqoREj2NHeTHfHn0kBI3j/HR6miYwtzxyvXws= RWRJc1FUaeVeqqgjsJUC4lChIzSFru1iE8fJ5EKqr7zVZWVkYVNjbsJQVx/f+EMtIIJ9gbaabiHC/qycnSOahmsYgZk5Ri4pQgw=
SHA256 (Pkgfile) = 3f6a37be60adf62f8113a7c5582843c877fa33629947507eb632d432c167f47e SHA256 (Pkgfile) = 9ab3e3a74da685a2539e021d2443a7f282ff4e47504a7ff9b86a75bcea311327
SHA256 (.footprint) = 89f34b238db57bc6c17393f572610deab6f881bb16877859bf99bfba073954e1 SHA256 (.footprint) = 9eb4640415822db0988891e34f931e78f7366abcda21339cdea2e03b98879561
SHA256 (gcc-10.2.0.tar.xz) = b8dd4368bb9c7f0b98188317ee0254dd8cc99d1e3a18d0ff146c855fe16c1d8c SHA256 (gcc-10.3.0.tar.xz) = 64f404c1a650f27fc33da242e1f2df54952e3963a49e06e73f6940f3223ac344
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,56 +1,53 @@
# Description: The GNU Compiler Collection # Description: The GNU Compiler Collection
# URL: http://gcc.gnu.org # URL: http://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: zlib libmpc zstd # Depends on: zlib libmpc zstd
name=gcc name=gcc
version=10.2.0 version=10.3.0
release=1 release=1
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$version/$name-$version.tar.xz \ 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) $name-nocheck-fixincludes.patch $name-4.7.3-multilib-dirs.patch)
build() { 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
##glibc 2.31 issue mkdir build
#sed -e '1161 s|^|//|' \ cd build
#-i $SRC/$name-$version/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc ../$name-$version/configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-languages=c,c++,objc \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-shared \
--disable-nls \
--with-x=no \
--with-system-zlib \
--enable-multilib \
--enable-default-pie \
--enable-default-ssp \
--with-pkgversion="CRUX-x86_64-multilib"
make bootstrap
make -j1 DESTDIR=$PKG install
mkdir build install -d $PKG/lib
cd build ln -sf ../usr/bin/cpp $PKG/lib/cpp
../$name-$version/configure --prefix=/usr \ ln -sf gcc $PKG/usr/bin/cc
--libexecdir=/usr/lib \ ln -sf g++ $PKG/usr/bin/c++
--enable-languages=c,c++,objc \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-shared \
--disable-nls \
--with-x=no \
--with-system-zlib \
--enable-multilib \
--enable-default-pie \
--enable-default-ssp \
--with-pkgversion="CRUX-x86_64-multilib"
make bootstrap
make -j1 DESTDIR=$PKG install
install -d $PKG/lib mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/
ln -sf ../usr/bin/cpp $PKG/lib/cpp rm -r $PKG/usr/share/{info,$name-$version}
ln -sf gcc $PKG/usr/bin/cc rm -r $PKG/usr/bin/*-linux-gnu-*
ln -sf g++ $PKG/usr/bin/c++ rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed}
mv $PKG/usr/lib/gcc/*/$version/include-fixed/{limits.h,syslimits.h} $PKG/usr/lib/gcc/*/$version/include/ for D in lib{,32}; do
rm -r $PKG/usr/share/{info,$name-$version} install -d -m 0755 $PKG/usr/share/gdb/auto-load/usr/${D}
rm -r $PKG/usr/bin/*-linux-gnu-* mv $PKG/usr/${D}/libstdc++.so.*-gdb.py $PKG/usr/share/gdb/auto-load/usr/${D}
rm -r $PKG/usr/lib/gcc/*/$version/{install-tools,include-fixed} done
for D in lib{,32}; do sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib{,32}/{libstdc++.la,libsupc++.la}
install -d -m 0755 $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
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib{,32}/{libstdc++.la,libsupc++.la}
} }