From e0681e29326949c6899744156d2623bfccffebd3 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 9 Apr 2021 20:10:58 +0200 Subject: [PATCH] ppc64le, s390x: Enforce POWER9 and z14 baseline (#1876584, #1876479) Related: #1876584 Related: #1876479 --- glibc.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 464db26..7460838 100644 --- a/glibc.spec +++ b/glibc.spec @@ -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 - 2.33-9 +- ppc64le, s390x: Enforce POWER9 and z14 baseline (#1876584, #1876479) + * Fri Apr 9 2021 Florian Weimer - 2.33-8 - s390x: Implement preliminary check for z14 support (#1945473)