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}]