system/fsviewer: Fix compile issue.

This commit is contained in:
B. Watson 2015-11-22 07:04:57 -05:00 committed by Willy Sudiarto Raharjo
parent 93306c05d4
commit 6b480b2a6c

View file

@ -61,8 +61,8 @@ if [ "${TITLEBAR:-no}" = "yes" ]; then
patch -p1 < $CWD/titlebar.diff
fi
LIBS="-lWUtil" \
CFLAGS="$SLKCFLAGS" \
LIBS="-lWUtil -lX11 -lm -lXpm" \
CFLAGS="$SLKCFLAGS -std=gnu89" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@ -73,6 +73,11 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
# fix broken gobbledegook emitted by autoconf. Life is too short
# to spend time fixing it 'correctly'.
GCCMAJVER=$( gcc --version | head -1 | cut -d' ' -f3 | cut -d. -f1 )
[ "$GCCMAJVER" -ge 5 ] && sed -i 's,-MT *\$@,-M,' */Makefile */*/Makefile
make
make install-strip DESTDIR=$PKG