From 77e796eeaf2a0b77bd7cbdb2d623959c6109708b Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Mon, 7 Feb 2022 18:32:36 +0100 Subject: [PATCH] network/efax-gtk: Fix for gcc >= 10.x. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- network/efax-gtk/efax-gtk.SlackBuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network/efax-gtk/efax-gtk.SlackBuild b/network/efax-gtk/efax-gtk.SlackBuild index 85d4f14d82..3460336c75 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 \