[arch-commits] Commit in slimevolley/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Tue Jul 7 21:17:02 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:17:02
  Author: foutrelis
Revision: 660309

Add -fcommon workaround for GCC 10

Modified:
  slimevolley/trunk/PKGBUILD

----------+
 PKGBUILD |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-07 21:17:01 UTC (rev 660308)
+++ PKGBUILD	2020-07-07 21:17:02 UTC (rev 660309)
@@ -15,11 +15,14 @@
 sha512sums=('7a72329d9e22396f2e304d40370896b2c1a0ae22d5bf1769a46cad8fb1131b1ae9c16de0e5f847b8a31004df074cdeb710a28bfd1e1d94beceb1c8eb0a750680'
             '61b09d65af465637d5c1d22306cc412f742b19ef58243d9df033a931ae9a2002123da393a91214999275c6801335ebcae9554cf4a4ce7a94b7cfef954bd6dc8c')
 
-build() {
+prepare() {
   cd "$srcdir/$pkgname"
-
   patch -Np1 -i ../link-libm.patch
+}
 
+build() {
+  cd "$srcdir/$pkgname"
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
   cmake -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr .
   make
 }



More information about the arch-commits mailing list