From f45efa0be68f2d8f70430684a0e899e84f6d4ce8 Mon Sep 17 00:00:00 2001 From: Zuzana Miklankova Date: Mon, 2 May 2022 11:23:47 +0200 Subject: [PATCH] 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 --- sqlite.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sqlite.spec b/sqlite.spec index c0b8c25..218afec 100644 --- a/sqlite.spec +++ b/sqlite.spec @@ -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 \