diff --git a/ghc-ghc-lib-parser-ex.changes b/ghc-ghc-lib-parser-ex.changes index 6ae4132..89e77d3 100644 --- a/ghc-ghc-lib-parser-ex.changes +++ b/ghc-ghc-lib-parser-ex.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Wed Aug 19 07:30:38 UTC 2020 - Michel Normand diff --git a/ghc-ghc-lib-parser-ex.spec b/ghc-ghc-lib-parser-ex.spec index 781b707..42a6d3a 100644 --- a/ghc-ghc-lib-parser-ex.spec +++ b/ghc-ghc-lib-parser-ex.spec @@ -33,6 +33,12 @@ BuildRequires: ghc-ghc-boot-th-devel BuildRequires: ghc-ghc-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-uniplate-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-directory-devel BuildRequires: ghc-extra-devel