diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2018-02-27 22:37:39 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-03 08:42:07 +0700 |
commit | 7596c5859fb45464c4469e79b8fa31a34daf6b49 (patch) | |
tree | 51db3804d799dc4ab05bdbe8b80a6b74a8289391 | |
parent | 041c8fd9ee99e9cb1b1d8e0543184345112d1938 (diff) | |
download | slackbuilds-7596c5859fb45464c4469e79b8fa31a34daf6b49.tar.gz |
games/iortcw: Fix build on 32 bit.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | games/iortcw/iortcw.SlackBuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/games/iortcw/iortcw.SlackBuild b/games/iortcw/iortcw.SlackBuild index 45715ceab0..bc076dbba1 100644 --- a/games/iortcw/iortcw.SlackBuild +++ b/games/iortcw/iortcw.SlackBuild @@ -66,15 +66,19 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" + BUILDARCH="x86" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" + BUILDARCH="x86" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" + BUILDARCH="x86_64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" + BUILDARCH="$ARCH" fi set -e @@ -206,7 +210,8 @@ find -L . \ # Nota: even if BUILD_GAME_QVM is set to 1, qvm files are not # generated on x86_64 systems. # -MAKE_ARGS="BUILD_CLIENT=1 \ +MAKE_ARGS="ARCH=$BUILDARCH \ +BUILD_CLIENT=1 \ BUILD_SERVER=1 \ BUILD_GAME_SO=1 \ BUILD_GAME_QVM=1 \ @@ -220,15 +225,16 @@ USE_INTERNAL_LIBS=${_USE_INTERNAL_LIBS} \ USE_CODEC_VORBIS=1 \ USE_CODEC_OPUS=1 \ USE_FREETYPE=1 \ -CFLAGS=\"$SLKFLAGS\" \ COPYDIR=\"$PKG/usr/share/games/rtcw\"" # Build single player game binaries cd SP +CFLAGS="$SLKCFLAGS" \ make $MAKE_ARGS release copyfiles # Build multi player game binaries cd ../MP +CFLAGS="$SLKCFLAGS" \ make $MAKE_ARGS release copyfiles find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |