diff --git a/ghc-brick.changes b/ghc-brick.changes index aa10fe9..1860a6f 100644 --- a/ghc-brick.changes +++ b/ghc-brick.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Sun Nov 15 22:16:04 UTC 2020 - psimons@suse.com diff --git a/ghc-brick.spec b/ghc-brick.spec index 1043394..2861fbf 100644 --- a/ghc-brick.spec +++ b/ghc-brick.spec @@ -50,6 +50,12 @@ BuildRequires: ghc-unix-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-vty-devel BuildRequires: ghc-word-wrap-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 %endif