diff --git a/ghc-extra.changes b/ghc-extra.changes index 9848896..1f30668 100644 --- a/ghc-extra.changes +++ b/ghc-extra.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Sat Sep 12 16:17:48 UTC 2020 - psimons@suse.com diff --git a/ghc-extra.spec b/ghc-extra.spec index 86f74cc..fe94fc3 100644 --- a/ghc-extra.spec +++ b/ghc-extra.spec @@ -33,6 +33,12 @@ BuildRequires: ghc-process-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-time-devel BuildRequires: ghc-unix-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-QuickCheck-devel BuildRequires: ghc-quickcheck-instances-devel