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