git » cpio.git » commit 2c16c16

Add -fcommon workaround for GCC 10

author Evangelos Foutras
2020-05-16 20:46:48 UTC
committer Evangelos Foutras
2020-05-16 20:46:48 UTC
parent b907273a457d155d8dd90c8e43170d7b701db778

Add -fcommon workaround for GCC 10

PKGBUILD +1 -0

diff --git a/PKGBUILD b/PKGBUILD
index 38054e5..7f540e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@ validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <g
 
 build() {
   cd ${pkgname}-${pkgver}
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
   ./configure --prefix=/usr --mandir=/usr/share/man
   make
 }