[packages/rust] ensure x32 uses only x86_64 native libs through pkgconfig

atler atler at pld-linux.org
Thu Sep 10 23:54:34 CEST 2026


commit bd0ecca5c09acd4380e30342942b16c88778904a
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Sep 10 23:50:15 2026 +0200

    ensure x32 uses only x86_64 native libs through pkgconfig
    
    x32 is "Tier 2 without host tools" so all tools are built for x86_64

 rust.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/rust.spec b/rust.spec
index 1fb61df..a6bef68 100644
--- a/rust.spec
+++ b/rust.spec
@@ -451,6 +451,9 @@ grep -lr '#!.*env bash' \
 export CC="%{__cc}"
 export CXX="%{__cxx}"
 export AR="%{__ar}"
+%ifarch x32
+export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig
+%endif
 %configure \
 	--build=%{rust_bootstrap_triple} \
 	--host=%{rust_host_triple} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rust.git/commitdiff/bd0ecca5c09acd4380e30342942b16c88778904a



More information about the pld-cvs-commit mailing list