add flag -mbranch-protection=standard for aarch64

added because of rpminspect check, which failed with:

FAIL: branch-protection test because the -mbranch-protection option was
not used
This commit is contained in:
Zuzana Miklankova 2022-05-02 11:23:47 +02:00
parent 0f684764a1
commit f45efa0be6
No known key found for this signature in database
GPG Key ID: 46A18EF4D17103A0

View File

@ -163,6 +163,10 @@ export CFLAGS="$RPM_OPT_FLAGS $RPM_LD_FLAGS \
-DSQLITE_ENABLE_DBPAGE_VTAB \
-Wall -fno-strict-aliasing"
%ifarch == aarch64
export CFLAGS="$CFLAGS -mbranch-protection=standard"
%endif
%configure %{!?with_tcl:--disable-tcl} \
--enable-rtree \
--enable-json1 \