aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-12-24 13:35:28 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2020-12-24 13:36:26 +0100
commitc8b7d321ea2687f7f6d84c2973aca2d12061e11a (patch)
tree9bcee9806f4030d6df344f5960492ecde79ca453
parentd3ca9303b871dd40a10faaa2983b7eaf523fcbb4 (diff)
downloadaports-c8b7d321ea2687f7f6d84c2973aca2d12061e11a.tar.gz
aports-c8b7d321ea2687f7f6d84c2973aca2d12061e11a.tar.bz2
aports-c8b7d321ea2687f7f6d84c2973aca2d12061e11a.tar.xz
community/dcc: disable -fno-common to fix build
Tried fixing the multiple definition errors but couldn't figure out how the multiple definitions of grey_on where supposed to be resolved, so just disable -fno-common for now.
-rw-r--r--community/dcc/APKBUILD4
1 files changed, 4 insertions, 0 deletions
diff --git a/community/dcc/APKBUILD b/community/dcc/APKBUILD
index d3256a5974..43dd1028f9 100644
--- a/community/dcc/APKBUILD
+++ b/community/dcc/APKBUILD
@@ -24,6 +24,10 @@ options="!check"
_p=var/dcc/libexec
+# Fix build with gcc 10, no idea how the multiple definitions of grey_on
+# are supposed to be resolved properly, so just disable -fno-common.
+export CFLAGS="$CFLAGS -fcommon"
+
prepare() {
chmod 755 configure
chmod 644 include/dcc_types.h include/dcc_config.h.in homedir/dcc_conf.in LICENSE