diff --git a/ghc-HUnit.changes b/ghc-HUnit.changes index 8bc0605..9f48079 100644 --- a/ghc-HUnit.changes +++ b/ghc-HUnit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Sun Nov 1 03:00:39 UTC 2020 - psimons@suse.com diff --git a/ghc-HUnit.spec b/ghc-HUnit.spec index c463919..463b160 100644 --- a/ghc-HUnit.spec +++ b/ghc-HUnit.spec @@ -29,6 +29,12 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-call-stack-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-rpm-macros +# 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-filepath-devel %endif