[arch-commits] Commit in arm-none-eabi-gcc/trunk (PKGBUILD)
Anatol Pomozov
anatolik at gemini.archlinux.org
Sun Apr 24 03:07:57 UTC 2022
Date: Sunday, April 24, 2022 @ 03:07:56
Author: anatolik
Revision: 1189493
upgpkg: arm-none-eabi-gcc 11.3.0-1
Modified:
arm-none-eabi-gcc/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-24 02:21:39 UTC (rev 1189492)
+++ PKGBUILD 2022-04-24 03:07:56 UTC (rev 1189493)
@@ -3,8 +3,7 @@
_target=arm-none-eabi
pkgname=$_target-gcc
-pkgver=11.2.0
-_islver=0.24
+pkgver=11.3.0
pkgrel=1
#_snapshot=8-20180427
pkgdesc='The GNU Compiler Collection - cross compiler for ARM EABI (bare-metal) target'
@@ -11,16 +10,14 @@
arch=(x86_64)
url='https://gcc.gnu.org/'
license=(GPL LGPL FDL)
-depends=($_target-binutils zlib libmpc)
+depends=($_target-binutils zlib libmpc libisl zstd)
makedepends=(gmp mpfr $_target-newlib)
optdepends=('arm-none-eabi-newlib: Standard C library optimized for embedded systems')
-options=(!emptydirs !strip)
-source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}
+options=(!emptydirs !strip !lto)
+source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig})
#ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
- http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
-sha256sums=('d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b'
- 'SKIP'
- 'fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0')
+sha256sums=('b47cf2818691f5b1e21df2bb38c795fac2cfbd640ede2d0a5e1c89e338a3ac39'
+ 'SKIP')
validpgpkeys=(33C235A34C46AA3FFB293709A328C3A2C3C45C06 # Jakub Jelinek <jakub at redhat.com>
D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62 # Jakub Jelinek <jakub at redhat.com>
13975A70E63C361C73AE69EF6EEB81F8981C74C7) # Richard Guenther <richard.guenther at gmail.com>
@@ -34,14 +31,8 @@
prepare() {
cd $_basedir
- # link isl for in-tree builds
- ln -s ../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/" {libiberty,gcc}/configure
-
mkdir "$srcdir"/build-{gcc,gcc-nano}
}
@@ -86,6 +77,12 @@
}
build() {
+ # 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/}
+
cd "$srcdir"/build-gcc
export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
export CXXFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
More information about the arch-commits
mailing list