Filter out -mbranch-protection= on aarch64.
This option is only available since GCC 9. Resolves: #1916228
This commit is contained in:
parent
bae06e86ab
commit
1a190dbfa4
@ -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'`
|
||||
|
Loading…
Reference in New Issue
Block a user