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'`