ppc64le, s390x: Enforce POWER9 and z14 baseline (#1876584, #1876479)

Related: #1876584
Related: #1876479
This commit is contained in:
Florian Weimer 2021-04-09 20:10:58 +02:00
parent 0d152695fc
commit e0681e2932
1 changed files with 11 additions and 1 deletions

View File

@ -89,7 +89,7 @@
Summary: The GNU libc libraries
Name: glibc
Version: %{glibcversion}
Release: 8%{?dist}
Release: 9%{?dist}
# In general, GPLv2+ is used by programs, LGPLv2+ is used for
# libraries.
@ -1117,6 +1117,13 @@ rpm_inherit_flags \
"-mtune=zEC12" \
"-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" \
BuildFlags="${BuildFlags/-march=z13/-march=z14}"
BuildFlags="${BuildFlags/-mtune=z13/-mtune=z15}"
BuildFlags="${BuildFlags/-mtune=z14/-mtune=z15}"
BuildFlags="${BuildFlags/-mtune=power8/-mtune=power9}"
BuildFlags="${BuildFlags/-mcpu=power8/-mcpu=power9}"
BuildFlags="${BuildFlags/-mtune=power8/-mtune=power9}"
# libc_nonshared.a cannot be built with the default hardening flags
# because the glibc build system is incompatible with
# -D_FORTIFY_SOURCE. The object files need to be marked as to be
@ -2289,6 +2296,9 @@ fi
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog
* Fri Apr 9 2021 Florian Weimer <fweimer@redhat.com> - 2.33-9
- ppc64le, s390x: Enforce POWER9 and z14 baseline (#1876584, #1876479)
* Fri Apr 9 2021 Florian Weimer <fweimer@redhat.com> - 2.33-8
- s390x: Implement preliminary check for z14 support (#1945473)