mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:04:39 +08: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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user