summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-07-08 23:25:18 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-07-08 23:25:18 -0700
commit2f175b2a54425272d94d35b953a19289fcc641c2 (patch)
tree2efea11b7955717547e58af14410402eef2fd896
parentRebuild for boost 1.72 (diff)
downloadmupen64plus-2f175b2a54425272d94d35b953a19289fcc641c2.tar.xz
Add -fcommon as workaround for gcc10
-rw-r--r--PKGBUILD5
1 files 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/}"