aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
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 \