From 91785f66e91eea598bf5c56e92d66a7248756fa3 Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Thu, 12 Mar 2026 12:01:12 +0800 Subject: [PATCH] spec: Disable debug mode to not use level 1 optimization Relates: RHEL-86010 Currently annocheck fails with the following message, # annocheck --no-use-debuginfod --ignore-unknown --debug-dir=./usr/lib/debug/ --verbose --profile=el10 ./usr/bin/evmctl ... FAIL: optimization test because level too low (based upon annobin data) (lto) This is because ima-evm-utils enable debugging mode by default which in turns enable -O1. RHEL's _d_optflags uses -O2. So disable debug mode to honor this option. Signed-off-by: Coiby Xu --- ima-evm-utils.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ima-evm-utils.spec b/ima-evm-utils.spec index c584ec4..c02c3be 100644 --- a/ima-evm-utils.spec +++ b/ima-evm-utils.spec @@ -70,13 +70,13 @@ popd %build autoreconf -vif -%configure --disable-static --disable-engine +%configure --disable-static --disable-engine --disable-debug %make_build %if 0%{bootstrap} pushd compat/ autoreconf -vif -%configure --disable-static --disable-engine +%configure --disable-static --disable-engine --disable-debug %make_build popd %endif