$ git show --format=fuller --patch-with-stat --summary d17ae6176c45fbf0c3f726fb67a8b3832ed598e8
commit d17ae6176c45fbf0c3f726fb67a8b3832ed598e8
Author: Crispin Boylan <crisb@mandriva.org>
AuthorDate: Fri Sep 20 18:23:46 2019 +0100
Commit: Crispin Boylan <crisb@mandriva.org>
CommitDate: Fri Sep 20 18:23:46 2019 +0100
Fix 32-bit
---
rust.spec | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/rust.spec b/rust.spec
index b57d5b0..f78ae10 100644
--- a/rust.spec
+++ b/rust.spec
@@ -200,7 +200,8 @@ export RUSTFLAGS="-Clink-arg=-Wl,-z,relro,-z,now"
%install
-# needs to be set here too or rust things it needs to rebuild
+# all of this needs to be set here too or
+# rust/llvm thinks it needs to rebuild
export RUST_BACKTRACE=1
export RUSTFLAGS="-Clink-arg=-Wl,-z,relro,-z,now"
@@ -209,6 +210,15 @@ export RUSTFLAGS="-Clink-arg=-Wl,-z,relro,-z,now"
export CC=gcc
export CXX=g++
export PATH=$PWD/omv_build_comp:$PATH
+
+%ifarch %{ix86} %{arm}
+# On 32-bit platforms, the linker barfs because the symbol table doesn't fit
+# into the available address space -- so we use -g0 for now
+export CFLAGS="%{optflags} -g0"
+export CXXFLAGS="%{optflags} -g0"
+export LDFLAGS="%{optflags} -g0"
+%endif
+
%endif