From 3e751daa9a43082da34aee5c704267f843985b40665eef30a32bce0eac8756ec Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 23 Feb 2026 10:10:04 +0000 Subject: [PATCH] - Add "-mavx2" to CFLAGS to fix build in i586, gh#pygame/pygame#4573 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygame?expand=0&rev=64 --- python-pygame.changes | 5 +++++ python-pygame.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-pygame.changes b/python-pygame.changes index 6513fbc..187456d 100644 --- a/python-pygame.changes +++ b/python-pygame.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 23 10:09:03 UTC 2026 - Daniel Garcia + +- Add "-mavx2" to CFLAGS to fix build in i586, gh#pygame/pygame#4573 + ------------------------------------------------------------------- Mon Feb 23 09:13:25 UTC 2026 - Daniel Garcia diff --git a/python-pygame.spec b/python-pygame.spec index ac39124..29284e4 100644 --- a/python-pygame.spec +++ b/python-pygame.spec @@ -103,7 +103,8 @@ chmod a+x examples/*.py chmod a-x docs/licenses/LICENSE.sdl_gfx.txt %build -export CFLAGS="%{optflags} -fno-strict-aliasing" +# -mavx2 fixes the build for i586 +export CFLAGS="%{optflags} -fno-strict-aliasing -mavx2" export PORTMIDI_INC_PORTTIME=1 %pyproject_wheel