network/pidgin-musictracker: Add extra CFLAGS.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2022-03-02 06:52:53 +00:00 committed by Willy Sudiarto Raharjo
parent 20f8f9b01e
commit 2e0375bb1b
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 14 additions and 6 deletions

View File

@ -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