diff options
author | David P <megver83@parabola.nu> | 2022-10-10 23:33:02 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2022-10-10 23:33:02 -0300 |
commit | 4a4194020b1800345e78c1e4f7d5720ee3a62ffe (patch) | |
tree | dfd31e1b4c4b451611ae7072e6559caca5e4d3d6 | |
parent | afa63e0c06fa65fc7a3ff4c702e5b12e8e37d16d (diff) |
updpkg: libre/xtensa-elf-gcc 12.2.0-1
Signed-off-by: David P <megver83@parabola.nu>
-rw-r--r-- | libre/xtensa-elf-gcc/PKGBUILD | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libre/xtensa-elf-gcc/PKGBUILD b/libre/xtensa-elf-gcc/PKGBUILD index b9db258af..d10ed2a41 100644 --- a/libre/xtensa-elf-gcc/PKGBUILD +++ b/libre/xtensa-elf-gcc/PKGBUILD @@ -2,27 +2,26 @@ _target=xtensa-elf pkgname=$_target-gcc -pkgver=11.2.0 -_islver=0.24 +pkgver=12.2.0 pkgrel=1 #_snapshot=8-20210107 pkgdesc='The GNU Compiler Collection - cross compiler for Xtensa (bare-metal) target' arch=(x86_64 i686 armv7h) url='http://gcc.gnu.org/' license=(GPL LGPL FDL) -depends=($_target-binutils libmpc zlib) +depends=($_target-binutils libmpc zlib libisl zstd) makedepends=(gmp mpfr) -options=(!emptydirs !strip) +options=(!emptydirs !strip !lto) source=(https://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig} #https://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz - https://libisl.sourceforge.io/isl-$_islver.tar.bz2 gcc.patch) -sha512sums=('d53a0a966230895c54f01aea38696f818817b505f1e2bfa65e508753fcd01b2aedb4a61434f41f3a2ddbbd9f41384b96153c684ded3f0fa97c82758d9de5c7cf' +sha512sums=('e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173' 'SKIP' - 'aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95' '7637408259cef4b14a2f41690bbc769ad0dc6cf4d1c782405526aeb58f68193269af6882b23fb57c3521174e45709ed2d54f0af1f835646e70a3bfd9f626aad9') -validpgpkeys=(33C235A34C46AA3FFB293709A328C3A2C3C45C06 # Jakub Jelinek <jakub@redhat.com> +validpgpkeys=(D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62 # Jakub Jelinek <jakub@redhat.com> + 33C235A34C46AA3FFB293709A328C3A2C3C45C06 # Jakub Jelinek <jakub@redhat.com> 13975A70E63C361C73AE69EF6EEB81F8981C74C7) # Richard Guenther <richard.guenther@gmail.com> + if [ -n "$_snapshot" ]; then _basedir=gcc-$_snapshot else @@ -35,14 +34,8 @@ prepare() { # https://github.com/qca/open-ath9k-htc-firmware/tree/master/local/patches patch -Np1 -i ../gcc.patch - # link isl for in-tree builds - ln -sf ../isl-$_islver isl - echo $pkgver > gcc/BASE-VER - # hack! - some configure tests for header files using "$CPP $CPPFLAGS" - sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" "$srcdir"/$_basedir/{libiberty,gcc}/configure - mkdir $srcdir/gcc-build } @@ -54,6 +47,12 @@ build() { CFLAGS=${CFLAGS/-pipe/} CXXFLAGS=${CXXFLAGS/-pipe/} + # Credits @allanmcrae + # https://github.com/allanmcrae/toolchain/blob/f18604d70c5933c31b51a320978711e4e6791cf1/gcc/PKGBUILD + # TODO: properly deal with the build issues resulting from this + CFLAGS=${CFLAGS/-Werror=format-security/} + CXXFLAGS=${CXXFLAGS/-Werror=format-security/} + if [ "$CARCH" = i686 ]; then # using -Werror=format-security causes i686 build to fail CXXFLAGS+=' -Wno-error=format-security' |