mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
games/bloodfrontier: Fixed underlinking.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
b78387e02e
commit
ab4b1b4924
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
PRGNAM=bloodfrontier
|
||||
VERSION=${VERSION:-0.85}
|
||||
SVERSION=${SVERSION:-B2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -39,6 +39,10 @@ elif [ "$ARCH" = "x86_64" ]; then
|
|||
SLKCFLAGS="-O2 -fPIC"
|
||||
SLKLDFLAGS="-L/usr/lib64 -L/lib64"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
SLKLDFLAGS="-L/usr/lib -L/lib"
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
@ -56,6 +60,8 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
sed -i "s|X11R6/lib|lib${LIBDIRSUFFIX} -lX11|" src/Makefile
|
||||
|
||||
make -C src \
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
|
Loading…
Reference in a new issue