diff --git a/ghc-doclayout.changes b/ghc-doclayout.changes index 22048c9..965b90a 100644 --- a/ghc-doclayout.changes +++ b/ghc-doclayout.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:44:41 UTC 2020 - Peter Simons diff --git a/ghc-doclayout.spec b/ghc-doclayout.spec index d3ad9fc..28d14b1 100644 --- a/ghc-doclayout.spec +++ b/ghc-doclayout.spec @@ -30,6 +30,12 @@ BuildRequires: ghc-mtl-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-safe-devel BuildRequires: ghc-text-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-tasty-devel BuildRequires: ghc-tasty-golden-devel