[packages/thunderbird] use rust's thin lto for lowmem and no lto for lowmem2

atler atler at pld-linux.org
Sat Oct 18 01:46:26 CEST 2025


commit 8647c382efcd44bd7956d25ec28071a901aba9c0
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Oct 18 01:42:52 2025 +0200

    use rust's thin lto for lowmem and no lto for lowmem2
    
    rust's lto is defaults to fat

 thunderbird.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/thunderbird.spec b/thunderbird.spec
index 6596302..453dbda 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -1410,6 +1410,8 @@ export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
 export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
 %endif
 
+export RUSTFLAGS="%{rpmrustflags}"
+
 %if %{with lowmem}
 export CFLAGS="$CFLAGS -g0"
 export CXXFLAGS="$CXXFLAGS -g0"
@@ -1417,7 +1419,11 @@ export MOZ_DEBUG_FLAGS=" "
 export LLVM_USE_SPLIT_DWARF=1
 export LLVM_PARALLEL_LINK_JOBS=1
 export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
-export RUSTFLAGS="-Cdebuginfo=0"
+export RUSTFLAGS="$RUSTFLAGS -Clto=thin"
+%endif
+
+%if %{with lowmem2}
+export RUSTFLAGS="$RUSTFLAGS -Clto=no"
 %endif
 
 %if %{with crashreporter}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/thunderbird.git/commitdiff/8647c382efcd44bd7956d25ec28071a901aba9c0



More information about the pld-cvs-commit mailing list