macros: Use %{build_rustflags} convention
But keep %__global_rustflags around for compatibility. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
3076bbaa3a
commit
ecc850755e
1 changed files with 4 additions and 2 deletions
|
@ -2,14 +2,16 @@
|
||||||
%__rustdoc %{_bindir}/rustdoc
|
%__rustdoc %{_bindir}/rustdoc
|
||||||
|
|
||||||
# Enable optimization, debuginfo, and link hardening.
|
# Enable optimization, debuginfo, and link hardening.
|
||||||
%__global_rustflags %{shrink:
|
%build_rustflags %{shrink:
|
||||||
-Copt-level=3
|
-Copt-level=3
|
||||||
-Cdebuginfo=2
|
-Cdebuginfo=2
|
||||||
-Clink-arg=-Wl,-z,relro,-z,now
|
-Clink-arg=-Wl,-z,relro,-z,now
|
||||||
-Ccodegen-units=1
|
-Ccodegen-units=1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%__global_rustflags %{build_rustflags}
|
||||||
|
|
||||||
%__global_rustflags_toml [%{lua:
|
%__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 .. '", ')
|
print('"' .. arg .. '", ')
|
||||||
end}]
|
end}]
|
||||||
|
|
Loading…
Reference in a new issue