desktop/wmbackground: Fix for gcc >= 10.x.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-02-10 20:56:53 +01:00 committed by Willy Sudiarto Raharjo
parent 82a4fb6f50
commit 81333bf9ee
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,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
@ -33,8 +33,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"
@ -64,7 +64,7 @@ find -L . \
cd wmbackground
make \
CC="gcc -fgnu89-inline $SLKCFLAGS"
CC="gcc -fgnu89-inline $SLKCFLAGS -w -Wl,--allow-multiple-definition"
# Copy executable to the correct location
mkdir -p $PKG/usr/bin