aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2020-12-19 11:55:39 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2020-12-19 11:59:04 +0000
commitc5adead10aaaffd95a3288f20c24257d301913e3 (patch)
tree13290f3a65d63bc35d8de3967575360851e8a70e
parent4bf601df41cc9d5165e1f518c4dd9ef00d4ecc4f (diff)
downloadaports-c5adead10aaaffd95a3288f20c24257d301913e3.tar.gz
aports-c5adead10aaaffd95a3288f20c24257d301913e3.tar.bz2
aports-c5adead10aaaffd95a3288f20c24257d301913e3.tar.xz
community/awesome: build with -fcommon
GCC10 builds with `-fno-common` by default. This results into 'multiple definition' errors in projects that define the same variable multiple times. The proper fix is to adjust the source, but in this cases there are many instances, so build with `-fcommon` for now.
-rw-r--r--community/awesome/APKBUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/community/awesome/APKBUILD b/community/awesome/APKBUILD
index 8faffb6c68..3021be8498 100644
--- a/community/awesome/APKBUILD
+++ b/community/awesome/APKBUILD
@@ -18,6 +18,7 @@ options="!check" # No test suite
source="$pkgname-$pkgver.tar.xz::https://github.com/awesomeWM/awesome-releases/raw/master/awesome-$pkgver.tar.xz"
build() {
+ export CFLAGS="$CFLAGS -fcommon"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc \