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.
This commit is contained in:
David Adam 2016-12-16 09:32:50 +08:00
parent 396bf1235d
commit 47b78b9eeb

View file

@ -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