mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
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:
parent
396bf1235d
commit
47b78b9eeb
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ is simple but incompatible with other shell languages.
|
||||||
%if 0%{?opensuse_bs} && 0%{?rhel} && 0%{?rhel} < 7
|
%if 0%{?opensuse_bs} && 0%{?rhel} && 0%{?rhel} < 7
|
||||||
export CC=gcc48
|
export CC=gcc48
|
||||||
export CXX=g++48
|
export CXX=g++48
|
||||||
|
%if 0%{?rhel} < 6
|
||||||
|
# i686 required for atomic instructions; default is i386
|
||||||
|
export CXXFLAGS="$CXXFLAGS -march=i686"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?opensuse_bs}
|
%if 0%{?opensuse_bs}
|
||||||
%configure || cat config.log
|
%configure || cat config.log
|
||||||
|
|
Loading…
Reference in a new issue