mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/fsviewer: Fix compile issue.
This commit is contained in:
parent
93306c05d4
commit
6b480b2a6c
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue