From 9f8b04ee4952bf3235951445876e7a5c4ca82643 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 1 Jun 2018 12:10:16 +0200 Subject: [PATCH] Adjust build flags inheritence from redhat-rpm-config --- glibc.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/glibc.spec b/glibc.spec index 4cfc471..f9bc125 100644 --- a/glibc.spec +++ b/glibc.spec @@ -724,9 +724,8 @@ rpm_inherit_flags () # Propgate select compiler flags from redhat-rpm-config. These flags # are target-dependent, so we use only those which are specified in -# redhat-rpm-config. We do not replicate the -march=/-mtune= -# selection here because these match the defaults compiled into GCC. -# We keep the -m32/-m32/-m64 flags to support multilib builds. +# redhat-rpm-config. We keep the -m32/-m32/-m64 flags to support +# multilib builds. rpm_inherit_flags \ "-fasynchronous-unwind-tables" \ @@ -735,7 +734,17 @@ rpm_inherit_flags \ "-m31" \ "-m32" \ "-m64" \ + "-march=i686" \ + "-march=x86-64" \ + "-march=z13" \ + "-march=z14" \ + "-march=zEC12" \ + "-mfpmath=sse" \ "-mstackrealign" \ + "-mtune=generic" \ + "-mtune=z13" \ + "-mtune=z14" \ + "-mtune=zEC12" \ "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" \ ##############################################################################