summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/fsviewer/fsviewer.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/system/fsviewer/fsviewer.SlackBuild b/system/fsviewer/fsviewer.SlackBuild
index ca710c0d98..a28386494d 100644
--- a/system/fsviewer/fsviewer.SlackBuild
+++ b/system/fsviewer/fsviewer.SlackBuild
@@ -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