From da3d1dd6388a1c4ec25a0ac71a873403bef2c6bf Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 14 Apr 2021 17:10:30 +0200 Subject: [PATCH] explicitly disable rust debuginfo if debug packages are disabled --- macros.rust | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros.rust b/macros.rust index 4b4e2e9..e899292 100644 --- a/macros.rust +++ b/macros.rust @@ -1,4 +1,4 @@ -%debuginforustflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -g}%{expand:%%undefine __dic_%{?_enable_debug_packages}} +%debuginforustflags -C debuginfo=%{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1:2}%{!?__dic_1:0}%{expand:%%undefine __dic_%{?_enable_debug_packages}} %rpmrustflags %debuginforustflags %rust_arches %{x8664} %{ix86} x32 aarch64 armv6hl armv7hl armv7hnl -- 2.44.0