diff --git a/ghc-http2.changes b/ghc-http2.changes index a8daa8a..dc0c270 100644 --- a/ghc-http2.changes +++ b/ghc-http2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Tue Aug 18 10:45:09 UTC 2020 - Peter Simons diff --git a/ghc-http2.spec b/ghc-http2.spec index 7f98137..58f74d3 100644 --- a/ghc-http2.spec +++ b/ghc-http2.spec @@ -37,6 +37,12 @@ BuildRequires: ghc-psqueues-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-stm-devel BuildRequires: ghc-time-manager-devel +# GHC dont support i586 +%ifarch %{ix86} +ExclusiveArch: i586 i686 +ExclusiveArch: i686 +%{expand:%%global optflags %(echo "%{optflags}"|sed -e s/i586/i686/) -march=i686 -mtune=generic} +%endif %if %{with tests} BuildRequires: ghc-Glob-devel BuildRequires: ghc-aeson-devel