From 7596c5859fb45464c4469e79b8fa31a34daf6b49 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Tue, 27 Feb 2018 22:37:39 +0000 Subject: games/iortcw: Fix build on 32 bit. Signed-off-by: David Spencer --- games/iortcw/iortcw.SlackBuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'games/iortcw') diff --git a/games/iortcw/iortcw.SlackBuild b/games/iortcw/iortcw.SlackBuild index 45715ceab05a..bc076dbba1a6 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 \ -- cgit v1.2.3