From 2f175b2a54425272d94d35b953a19289fcc641c2 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Wed, 8 Jul 2020 23:25:18 -0700 Subject: Add -fcommon as workaround for gcc10 --- PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 5a85bf1..f4fa935 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -31,8 +31,9 @@ build() { cd mupen64plus-bundle-src-${pkgver} # -fPIE breaks libmupen64plus.so.2 - export CFLAGS="$CFLAGS -O3 -flto=4 -fPIC" - export CXXFLAGS="$CXXFLAGS -O3 -flto=4 -fPIC" +# -fcommon as gcc10 workaround + export CFLAGS="$CFLAGS -O3 -flto=4 -fPIC -fcommon" + export CXXFLAGS="$CXXFLAGS -O3 -flto=4 -fPIC -fcommon" if [[ $CARCH = 'i686' ]]; then export CFLAGS="${CFLAGS/-fno-plt/}" -- cgit v1.2.1