From 387a56a3d194f8ac3d0aaa744526541d8cc18de287be680d41937e5bdee3cb09 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 4 Oct 2019 07:41:20 +0000 Subject: [PATCH] - Enable SSE/SSE2. OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=33 --- gzdoom.changes | 1 + gzdoom.spec | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/gzdoom.changes b/gzdoom.changes index d878a47..26543a8 100644 --- a/gzdoom.changes +++ b/gzdoom.changes @@ -2,6 +2,7 @@ Tue Oct 1 06:23:02 UTC 2019 - Jan Engelhardt - Add gzdoom-asmjit.patch. +- Enable SSE/SSE2. ------------------------------------------------------------------- Fri Sep 13 11:39:15 UTC 2019 - Jan Engelhardt diff --git a/gzdoom.spec b/gzdoom.spec index 2257f81..f1c00fc 100644 --- a/gzdoom.spec +++ b/gzdoom.spec @@ -102,6 +102,12 @@ perl -i -pe 's{}{%version}g' \ %define _lto_cflags %nil # We must not strip - %%debug_package will take care of it # Deactivate -Wl,--as-needed + +%ifarch %ix86 +# program does a cpuid check, so it is ok to enable +export CFLAGS="%optflags -msse -msse2" +export CXXFLAGS="%optflags -msse -msse2" +%endif %cmake -DNO_STRIP=1 \ %if 0%{suse_version} == 1315 -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 \