From 47b78b9eeb90ceacf4ecb9246c7444375b3e2473 Mon Sep 17 00:00:00 2001 From: David Adam Date: Fri, 16 Dec 2016 09:32:50 +0800 Subject: [PATCH] fish.spec: on OBS/RHEL 5, build with -march=i686 RHEL 5 defaults to the i386 architecture, which does not provide the atomic instructions required by C++11. --- fish.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fish.spec.in b/fish.spec.in index 5eb522961..b4e1e69f9 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -41,6 +41,10 @@ is simple but incompatible with other shell languages. %if 0%{?opensuse_bs} && 0%{?rhel} && 0%{?rhel} < 7 export CC=gcc48 export CXX=g++48 +%if 0%{?rhel} < 6 +# i686 required for atomic instructions; default is i386 +export CXXFLAGS="$CXXFLAGS -march=i686" +%endif %endif %if 0%{?opensuse_bs} %configure || cat config.log