From ecc850755ebed880069f64e73f11f01cf8cd3286 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 23 Apr 2019 21:10:38 +0200 Subject: [PATCH] macros: Use %{build_rustflags} convention But keep %__global_rustflags around for compatibility. Signed-off-by: Igor Gnatenko --- data/macros.rust | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/macros.rust b/data/macros.rust index f730c52..8a13064 100644 --- a/data/macros.rust +++ b/data/macros.rust @@ -2,14 +2,16 @@ %__rustdoc %{_bindir}/rustdoc # Enable optimization, debuginfo, and link hardening. -%__global_rustflags %{shrink: +%build_rustflags %{shrink: -Copt-level=3 -Cdebuginfo=2 -Clink-arg=-Wl,-z,relro,-z,now -Ccodegen-units=1 } +%__global_rustflags %{build_rustflags} + %__global_rustflags_toml [%{lua: - for arg in string.gmatch(rpm.expand("%{__global_rustflags}"), "%S+") do + for arg in string.gmatch(rpm.expand("%{build_rustflags}"), "%S+") do print('"' .. arg .. '", ') end}]