diff --git a/ghc-bootstrap-helpers.changes b/ghc-bootstrap-helpers.changes index 82d81d1..11e86a1 100644 --- a/ghc-bootstrap-helpers.changes +++ b/ghc-bootstrap-helpers.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:28:13 UTC 2020 - Ondřej Súkup diff --git a/ghc-bootstrap-helpers.spec b/ghc-bootstrap-helpers.spec index 0bd2b64..fbfc03e 100644 --- a/ghc-bootstrap-helpers.spec +++ b/ghc-bootstrap-helpers.spec @@ -27,6 +27,12 @@ URL: https://build.opensuse.org/project/show/devel:languages:haskell Source: alex-%{alex_ver}.tar.gz Source1: happy-%{happy_ver}.tar.gz BuildRequires: ghc-bootstrap +# 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 # This package is not meant to be used outside OBS Requires: this-is-only-for-build-envs