[packages/rust/linker-debug] switch to specrustflags
atler
atler at pld-linux.org
Mon Feb 2 12:17:13 CET 2026
commit 089ea8bac4d4c464e5660cd8e4bb182a63563ba0
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Feb 2 12:11:48 2026 +0100
switch to specrustflags
rust.spec | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/rust.spec b/rust.spec
index b944694..10c9984 100644
--- a/rust.spec
+++ b/rust.spec
@@ -33,6 +33,12 @@
%define _enable_debug_packages 0
%endif
+%if %{with bootstrap}
+%define rust_lld_flags -C linker-features=-lld
+%endif
+
+%define specrustflags %{?rust_lld_flags}
+
Summary: The Rust Programming Language
Summary(pl.UTF-8): Język programowania Rust
Name: rust
@@ -69,7 +75,7 @@ BuildRequires: procps
BuildRequires: python3
BuildRequires: python3-modules
BuildRequires: rpm-build >= 4.6
-BuildRequires: rpmbuild(macros) >= 2.050
+BuildRequires: rpmbuild(macros) >= 2.052
%if %{without cross}
BuildRequires: curl-devel
BuildRequires: libgit2-devel >= 1.9.0
@@ -411,9 +417,6 @@ find vendor -name .cargo-checksum.json \
export CC="%{__cc}"
export CXX="%{__cxx}"
export AR="%{__ar}"
-%if %{with bootstrap}
-export RUSTFLAGS="%{rpmrustflags} -C linker-features=-lld"
-%endif
%configure \
--build=%{rust_bootstrap_triple} \
--host=%{rust_host_triple} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rust.git/commitdiff/9d0b04c9868e51608a06ed19211395e98d3529fc
More information about the pld-cvs-commit
mailing list