diff --git a/ghc-hslua.changes b/ghc-hslua.changes index cf5e76b..58ee1ef 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Sat Oct 17 02:01:28 UTC 2020 - psimons@suse.com diff --git a/ghc-hslua.spec b/ghc-hslua.spec index d593d86..293738a 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -32,6 +32,12 @@ BuildRequires: ghc-exceptions-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-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