aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-18 16:35:47 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-20 20:45:14 +0700
commitbcb93bfc01d957d65dc44d152170c79f03b381b2 (patch)
tree3f4a0650c2bd8a2e0f25440bcb930b9a9e6c8a27 /games
parent84540742bdcb5669cc9863016d5f89f592cc81be (diff)
downloadslackbuilds-bcb93bfc01d957d65dc44d152170c79f03b381b2.tar.xz
games/gzdoom: Fix 32-bit build (require SSE2).
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/gzdoom/README6
-rw-r--r--games/gzdoom/gzdoom.SlackBuild4
2 files changed, 10 insertions, 0 deletions
diff --git a/games/gzdoom/README b/games/gzdoom/README
index 2bee38c3af89..5678f4977b2c 100644
--- a/games/gzdoom/README
+++ b/games/gzdoom/README
@@ -9,3 +9,9 @@ try installing gzdoom-legacy instead. Note that gzdoom and gzdoom-legacy
conflict: only install one or the other.
See README_SBo.txt for optional runtime dependencies.
+
+Note to 32-bit users: gzdoom requires the SSE2 extension. If you
+get "illegal instruction" errors when trying to run gzdoom, your
+CPU doesn't have SSE2, and you should use gzdoom-legacy instead.
+At this point (2022), there aren't that many non-SSE2 x86 CPUs still
+in service, so probably this won't be a problem for you.
diff --git a/games/gzdoom/gzdoom.SlackBuild b/games/gzdoom/gzdoom.SlackBuild
index 780f2f6f318e..935c1bf0505e 100644
--- a/games/gzdoom/gzdoom.SlackBuild
+++ b/games/gzdoom/gzdoom.SlackBuild
@@ -101,6 +101,10 @@ sed -i '1i#include <cmath>' \
src/rendering/swrenderer/drawers/r_draw.cpp \
src/rendering/swrenderer/viewport/r_spritedrawer.cpp
+# 20220318 bkw: gzdoom requires SSE2. not a problem for x86_64, but we
+# have to explicitly set the flags for the 32-bit build to succeed.
+SLKCFLAGS+=" -msse -msse2"
+
mkdir -p build
cd build
cmake \