From 2e0375bb1b79e2517f989a82bdc5301afc8da992 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Wed, 2 Mar 2022 06:52:53 +0000 Subject: network/pidgin-musictracker: Add extra CFLAGS. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- .../pidgin-musictracker.SlackBuild | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'network') diff --git a/network/pidgin-musictracker/pidgin-musictracker.SlackBuild b/network/pidgin-musictracker/pidgin-musictracker.SlackBuild index db3a394b4e..7b66d1af26 100644 --- a/network/pidgin-musictracker/pidgin-musictracker.SlackBuild +++ b/network/pidgin-musictracker/pidgin-musictracker.SlackBuild @@ -25,13 +25,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pidgin-musictracker VERSION=${VERSION:-0.4.22} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} 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 @@ -51,8 +51,8 @@ OUTPUT=${OUTPUT:-/tmp} DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS" -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" @@ -80,8 +80,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS -Wno-error=deprecated-declarations -Wno-error=expansion-to-defined -Wno-error=implicit-fallthrough= -Wno-error=format-truncation=" \ -CXXFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS \ + -Wno-error=deprecated-declarations \ + -Wno-error=expansion-to-defined \ + -Wno-error=implicit-fallthrough= \ + -Wno-error=format-truncation= \ + -Wno-error=stringop-truncation \ + -fcommon" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -93,6 +98,9 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +# cleaup libtool stuff +rm -f $PKG/usr/lib64/pidgin/musictracker.la + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3