aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-02-07 18:32:36 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-09 09:35:17 +0700
commit77e796eeaf2a0b77bd7cbdb2d623959c6109708b (patch)
tree336906feb522386c22df2632c4004f7e2f328cec /network
parenteb0dfc04695c00625f536b1972586e8fea495a68 (diff)
network/efax-gtk: Fix for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/efax-gtk/efax-gtk.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/efax-gtk/efax-gtk.SlackBuild b/network/efax-gtk/efax-gtk.SlackBuild
index 85d4f14d82bf..3460336c758d 100644
--- a/network/efax-gtk/efax-gtk.SlackBuild
+++ b/network/efax-gtk/efax-gtk.SlackBuild
@@ -32,7 +32,7 @@ PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -57,8 +57,8 @@ DOCFILES="ABOUT-NLS AUTHORS BUGS ChangeLog COPYING INSTALL README"
EFAX_DOCS="efax/COPYING efax/PATCHES efax/README efax/fax"
OTHER_CMDS="mail_fax print_fax"
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -86,7 +86,7 @@ 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" \
+CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \