From bcb93bfc01d957d65dc44d152170c79f03b381b2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 18 Mar 2022 16:35:47 -0400 Subject: games/gzdoom: Fix 32-bit build (require SSE2). Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/gzdoom/README | 6 ++++++ games/gzdoom/gzdoom.SlackBuild | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'games') 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 ' \ 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 \ -- cgit v1.2.3