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 <coxu@redhat.com>
This commit is contained in:
parent
61cbfcfb23
commit
91785f66e9
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user