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

Evangelos Foutras foutrelis at archlinux.org
Tue Jul 7 21:16:07 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:16:07
  Author: foutrelis
Revision: 660257

Add -fcommon workaround for GCC 10

Modified:
  afpfs-ng/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-07 21:16:05 UTC (rev 660256)
+++ PKGBUILD	2020-07-07 21:16:07 UTC (rev 660257)
@@ -28,7 +28,7 @@
             'f551ae9debe8ce2c4ed1d7a8bce497801ace995473876a5fefa0443353232477'
             '71b8f52923cef39f0cccb8fdff610575958fd5dbed66e5aa4413ae6aceeec656')
 
-build() {
+prepare() {
 	cd "$pkgname-$pkgver"
 	# apply patches
 	msg2 'fix_afpfs-ng_includes.patch'
@@ -45,7 +45,11 @@
 	patch -Np1 -i "$srcdir/21-header-path-fix.patch"
 	msg2 '30-include-fixes.patch'
 	patch -Np1 -i "$srcdir/30-include-fixes.patch"
+}
 
+build() {
+	cd "$pkgname-$pkgver"
+	CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
 	./configure --prefix=/usr
 	make
 }


More information about the arch-commits mailing list