spec: Reduce debuginfo level

"Level 1 produces minimal information, enough for making backtraces in
  parts of the program that you don't plan to debug. This includes
  descriptions of functions and external variables, and line number
  tables, but no information about local variables." -- gcc(1)

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
Vitaly Chikunov 2025-08-19 06:19:32 +03:00
parent 50d28023b7
commit 8ef7a5cd9e

View file

@ -152,6 +152,7 @@ sed -i 's/common_has_curl()/0/' tests/test-arg-parser.cpp
sed /test-thread-safety/d -i tests/CMakeLists.txt
%build
%define optflags_debug -g1
# Unless -DCMAKE_SKIP_BUILD_RPATH=yes CMake fails to strip build time RPATH
# from (installed) binaries.
export NVCC_PREPEND_FLAGS=-ccbin=g++-12