From 8f4dfbf63dd46fce9236127e8c307043a9d84cf9b476a475c8e53c24efb5a930 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 18 Oct 2023 07:56:57 +0000 Subject: [PATCH] Accepting request 1118532 from home:Andreas_Schwab:Factory - Avoid use of SSE in i586 build OBS-URL: https://build.opensuse.org/request/show/1118532 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=680 --- glibc.changes | 5 +++++ glibc.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/glibc.changes b/glibc.changes index b9a7d0b..a0b2b98 100644 --- a/glibc.changes +++ b/glibc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 17 12:00:11 UTC 2023 - Andreas Schwab + +- Avoid use of SSE in i586 build + ------------------------------------------------------------------- Mon Oct 9 08:50:18 UTC 2023 - Andreas Schwab diff --git a/glibc.spec b/glibc.spec index d345bd2..922896a 100644 --- a/glibc.spec +++ b/glibc.spec @@ -630,6 +630,14 @@ for opt in $tmp; do done %if "%flavor" == "i686" BuildFlags+=" -march=i686 -mtune=generic" +%else +%if !%{build_cross} +%ifarch i586 +# workaround for unaligned stack in java-11-openjdk and mariadb +# by avoiding use of SSE +BuildFlags+=" -march=i586" +%endif +%endif %endif %if 0%{?with_gcc:1} BuildCC="gcc-%{with_gcc}"