diff --git a/ghc-distribution-opensuse.changes b/ghc-distribution-opensuse.changes index b476b96..470b36e 100644 --- a/ghc-distribution-opensuse.changes +++ b/ghc-distribution-opensuse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Tue Sep 8 09:43:16 UTC 2020 - Peter Simons diff --git a/ghc-distribution-opensuse.spec b/ghc-distribution-opensuse.spec index 0815fdb..d23040a 100644 --- a/ghc-distribution-opensuse.spec +++ b/ghc-distribution-opensuse.spec @@ -44,6 +44,12 @@ BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-turtle-devel BuildRequires: pandoc +# 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 %description This library is a loose collection of types, functions, and tools that users