Inherit additional build flags from redhat-rpm-config (#1947895)

This adds additional coverage for aarch64, ppc64le, x86_64.  At
present, these changes have no effect: On x86_64, we used
-march=x86-64-v2 as the built-in GCC default before, and on
aarch64 and on ppc64le, redhat-rpm-config does not list any of the
flags added here.

Resolves: #1947895
This commit is contained in:
Florian Weimer 2021-04-09 15:44:58 +02:00
parent 05cf3d95f6
commit 15874e7864

View File

@ -89,7 +89,7 @@
Summary: The GNU libc libraries Summary: The GNU libc libraries
Name: glibc Name: glibc
Version: %{glibcversion} Version: %{glibcversion}
Release: 6%{?dist} Release: 7%{?dist}
# In general, GPLv2+ is used by programs, LGPLv2+ is used for # In general, GPLv2+ is used by programs, LGPLv2+ is used for
# libraries. # libraries.
@ -1087,18 +1087,29 @@ rpm_inherit_flags \
"-m31" \ "-m31" \
"-m32" \ "-m32" \
"-m64" \ "-m64" \
"-march=armv8-a+lse" \
"-march=armv8.1-a" \
"-march=haswell" \ "-march=haswell" \
"-march=i686" \ "-march=i686" \
"-march=x86-64" \ "-march=x86-64" \
"-march=x86-64-v2" \
"-march=x86-64-v3" \
"-march=x86-64-v4" \
"-march=z13" \ "-march=z13" \
"-march=z14" \ "-march=z14" \
"-march=z15" \ "-march=z15" \
"-march=zEC12" \ "-march=zEC12" \
"-mbranch-protection=standard" \ "-mbranch-protection=standard" \
"-mcpu=power10" \
"-mcpu=power8" \
"-mcpu=power9" \
"-mfpmath=sse" \ "-mfpmath=sse" \
"-msse2" \ "-msse2" \
"-mstackrealign" \ "-mstackrealign" \
"-mtune=generic" \ "-mtune=generic" \
"-mtune=power10" \
"-mtune=power8" \
"-mtune=power9" \
"-mtune=z13" \ "-mtune=z13" \
"-mtune=z14" \ "-mtune=z14" \
"-mtune=z15" \ "-mtune=z15" \
@ -2277,6 +2288,9 @@ fi
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog %changelog
* Fri Apr 9 2021 Florian Weimer <fweimer@redhat.com> - 2.33-7
- Inherit additional build flags from redhat-rpm-config (#1947895)
* Wed Apr 7 2021 Florian Weimer <fweimer@redhat.com> - 2.33-6 * Wed Apr 7 2021 Florian Weimer <fweimer@redhat.com> - 2.33-6
- Remove power9 multilib (#1889978) - Remove power9 multilib (#1889978)