summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Philip Lacroix2022-02-07 18:01:01 +0100
committer Willy Sudiarto Raharjo2022-02-07 18:01:01 +0100
commitdff7c85eef13f16ada611af0dd5b1d6d723d0f62 (patch)
tree5c3fa65a8320a7c0d9b3a107add0228aba636ad1
parentbe9306e089935d1a41a02e04d1166a88bc423cba (diff)
downloadslackbuilds-dff7c85eef13f16ada611af0dd5b1d6d723d0f62.tar.gz
multimedia/coriander: Fix build on -current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--multimedia/coriander/coriander.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/multimedia/coriander/coriander.SlackBuild b/multimedia/coriander/coriander.SlackBuild
index 811c40173f..3756283bee 100644
--- a/multimedia/coriander/coriander.SlackBuild
+++ b/multimedia/coriander/coriander.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for coriander
-# Copyright 2015-2021 Philip Lacroix <slackph at posteo dot de>
+# Copyright 2015-2022 Philip Lacroix <slackph at posteo dot de>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=coriander
VERSION=${VERSION:-2.0.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,7 +80,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
+# We'll have to use -fcommon to work around some multiple definition errors
+# that would prevent compilation using GCC versions >= 10, where -fno-common
+# is now default. [Reference: https://gcc.gnu.org/gcc-10/porting_to.html]
+
+CFLAGS="$SLKCFLAGS -fcommon" \
./configure \
--prefix=/usr \
--enable-static=no \