[arch-commits] Commit in or1k-elf-gcc/trunk (PKGBUILD)

Anatol Pomozov anatolik at gemini.archlinux.org
Mon May 16 20:39:28 UTC 2022


    Date: Monday, May 16, 2022 @ 20:39:28
  Author: anatolik
Revision: 1207616

upgpkg: or1k-elf-gcc 12.1.0-1

Modified:
  or1k-elf-gcc/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-16 20:31:43 UTC (rev 1207615)
+++ PKGBUILD	2022-05-16 20:39:28 UTC (rev 1207616)
@@ -4,8 +4,7 @@
 
 _target=or1k-elf
 pkgname=$_target-gcc
-pkgver=11.1.0
-_islver=0.22
+pkgver=12.1.0
 pkgrel=1
 #_snapshot=8-20180427
 pkgdesc='The GNU Compiler Collection - cross compiler for OpenRISC 1000 (bare-metal) target'
@@ -12,16 +11,15 @@
 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=("$_target-newlib: Standard C library optimized for embedded systems")
-options=(!emptydirs !strip)
+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)
-sha512sums=('fd6bba0f67ff48069d03073d1a9b5e896383b1cfc9dde008e868e60a9ec5014a837d56af0ecbf467b3fb9b37ec74a676e819a18b44393a0a3c4280175b5d7ad8'
-            'SKIP'
-            'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668')
+	)
+sha512sums=('2121d295292814a6761edf1fba08c5f633ebe16f52b80e7b73a91050e71e1d2ed98bf17eebad263e191879561c02b48906c53faa4c4670c486a26fc75df23900'
+            'SKIP')
 
 validpgpkeys=(D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62  # Jakub Jelinek <jakub at redhat.com>
               13975A70E63C361C73AE69EF6EEB81F8981C74C7) # Richard Guenther <richard.guenther at gmail.com>
@@ -37,18 +35,15 @@
 
   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
 }
 
 build() {
   cd build-gcc
 
+  CFLAGS=${CFLAGS/-Werror=format-security/}
+  CXXFLAGS=${CXXFLAGS/-Werror=format-security/}
+
   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