diff --git a/macros b/macros index 9256cbb..54659c1 100644 --- a/macros +++ b/macros @@ -134,6 +134,8 @@ print(result) # Also used for s390. %__cflags_arch_s390x %[0%{?rhel} >= 9 ? "-march=z14 -mtune=z15" : "-march=zEC12 -mtune=z13"] +%__cflags_arch_ppc64le %[0%{?rhel} >= 9 ? "-mcpu=power9 -mtune=power9" : "-mcpu=power8 -mtune=power8"] + #============================================================================== # ---- configure and makeinstall. # diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 0f9a2ff..67dcf97 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 213 +Version: 214 Release: 1%{?dist} # No version specified. License: GPL+ @@ -191,6 +191,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Thu Feb 10 2022 Florian Weimer - 214-1 +- ppc64le: Switch baseline to POWER9 on ELN (ELN issue 78) + * Thu Feb 10 2022 Florian Weimer - 213-1 - s390x: Switch baseline to z14 on ELN (ELN issue 79) diff --git a/rpmrc b/rpmrc index 12d5979..d59bc63 100644 --- a/rpmrc +++ b/rpmrc @@ -29,7 +29,7 @@ optflags: ppciseries %{__global_compiler_flags} -m32 optflags: ppcpseries %{__global_compiler_flags} -m32 optflags: ppc64 %{__global_compiler_flags} -m64 -fasynchronous-unwind-tables -fstack-clash-protection optflags: ppc64p7 %{__global_compiler_flags} -m64 -O3 -mcpu=power7 -mtune=power7 -fasynchronous-unwind-tables -fstack-clash-protection -optflags: ppc64le %{__global_compiler_flags} -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection +optflags: ppc64le %{__global_compiler_flags} -m64 %{__cflags_arch_ppc64le} -fasynchronous-unwind-tables -fstack-clash-protection optflags: ppc64iseries %{__global_compiler_flags} -m64 optflags: ppc64pseries %{__global_compiler_flags} -m64 optflags: ppc8260 %{__global_compiler_flags} -m32