diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-10 21:00:08 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-12 00:29:43 +0700 |
commit | e0685983ce72f26e31564353de16336787323078 (patch) | |
tree | 7c4f6debb87365b4668b069920e5aeb012282931 | |
parent | d6801b15af426593929358a420dd0f20610f0527 (diff) | |
download | slackbuilds-e0685983ce72f26e31564353de16336787323078.tar.gz |
desktop/wmclockmon: Fix for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | desktop/wmclockmon/wmclockmon.SlackBuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/wmclockmon/wmclockmon.SlackBuild b/desktop/wmclockmon/wmclockmon.SlackBuild index 7c69aad2e7..373041ea79 100644 --- a/desktop/wmclockmon/wmclockmon.SlackBuild +++ b/desktop/wmclockmon/wmclockmon.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 @@ -50,8 +50,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -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" @@ -79,7 +79,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 -fgnu89-inline" \ +CFLAGS="$SLKCFLAGS -fgnu89-inline -w -Wl,--allow-multiple-definition" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ |