- apply s390(x) workaround only in Fedora < 26
This commit is contained in:
parent
f190f97dbc
commit
f0aa13e549
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
Name: libcxx
|
Name: libcxx
|
||||||
Version: 3.9.0
|
Version: 3.9.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: C++ standard library targeting C++11
|
Summary: C++ standard library targeting C++11
|
||||||
License: MIT or NCSA
|
License: MIT or NCSA
|
||||||
URL: http://libcxx.llvm.org/
|
URL: http://libcxx.llvm.org/
|
||||||
|
@ -41,10 +41,12 @@ Requires: libcxxabi-devel
|
||||||
mkdir _build
|
mkdir _build
|
||||||
cd _build
|
cd _build
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
|
%if 0%{?fedora} < 26
|
||||||
# clang requires z10 at minimum
|
# clang requires z10 at minimum
|
||||||
# workaround until we change the defaults for Fedora
|
# workaround until we change the defaults for Fedora
|
||||||
%global optflags %(echo %{optflags} | sed 's/-march=z9-109 /-march=z10 /')
|
%global optflags %(echo %{optflags} | sed 's/-march=z9-109 /-march=z10 /')
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
export LDFLAGS="-Wl,--build-id"
|
export LDFLAGS="-Wl,--build-id"
|
||||||
# Clang in older releases than f24 can't build this code without crashing.
|
# Clang in older releases than f24 can't build this code without crashing.
|
||||||
# So, we use gcc there. But the really old version in RHEL 6 works. Huh.
|
# So, we use gcc there. But the really old version in RHEL 6 works. Huh.
|
||||||
|
@ -92,6 +94,9 @@ make install DESTDIR=%{buildroot}
|
||||||
%{_libdir}/libc++.so
|
%{_libdir}/libc++.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 21 2017 Dan Horák <dan[at]danny.cz> - 3.9.0-2
|
||||||
|
- apply s390(x) workaround only in Fedora < 26
|
||||||
|
|
||||||
* Mon Feb 20 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-1
|
* Mon Feb 20 2017 Tom Callaway <spot@fedoraproject.org> - 3.9.0-1
|
||||||
- update to 3.9.0 (match clang)
|
- update to 3.9.0 (match clang)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue