From 1a190dbfa4cef9f461206ded0062c30a451e1e7b Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 21 Jan 2021 12:51:49 -0500 Subject: [PATCH] Filter out -mbranch-protection= on aarch64. This option is only available since GCC 9. Resolves: #1916228 --- compat-libgfortran-48.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat-libgfortran-48.spec b/compat-libgfortran-48.spec index d59849d..f5cff71 100644 --- a/compat-libgfortran-48.spec +++ b/compat-libgfortran-48.spec @@ -364,6 +364,9 @@ OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=x86-64-v2/-march=x86-64/g'` %ifarch %{ix86} OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=i.86//g'` %endif +%ifarch aarch64 +OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mbranch-protection=standard//g'` +%endif %ifarch s390x # Same here. OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=z13 -mtune=z14//g'`