summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Uhl2021-03-29 14:53:55 +0200
committerFelix Uhl2021-03-29 14:53:55 +0200
commitfdd4db3365efd261e93fc790fd02015c4300c0ef (patch)
treea48290a251b4060460c73aef80e9b81a386f2b48
parent60ce7c998d1d7ecee4ad16a61f700e06eed74eea (diff)
downloadaur-fdd4db3365efd261e93fc790fd02015c4300c0ef.tar.gz
Fix build for gcc >= 10
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
2 files changed, 3 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b07f8d059a96..4a404e8f9a36 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,3 @@
-# Generated by mksrcinfo v8
-# Mon Mar 6 18:22:26 UTC 2017
pkgbase = uswsusp-git
pkgdesc = Userspace software suspend - git checkout
pkgver = 0.r501.g668c5f7
diff --git a/PKGBUILD b/PKGBUILD
index ef8cf8320a6f..f96a0cb241ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -57,6 +57,9 @@ build() {
# For the time being encrypt support is disabled. To reenable add
# --enable-encrypt below and fix the code.
+ # This is necessary for gcc >= 10
+ CFLAGS="$CFLAGS -fcommon"
+
./configure \
--prefix=/usr \
--sbindir=/usr/bin \