From aadf6378cf165c0de5b36e4292880ea61becc279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Fri, 22 Oct 2021 19:07:26 -0300 Subject: [PATCH] thunderbird: try to fix build on i686. --- srcpkgs/thunderbird/template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/thunderbird/template b/srcpkgs/thunderbird/template index b8cb35ad19e..9063ead6161 100644 --- a/srcpkgs/thunderbird/template +++ b/srcpkgs/thunderbird/template @@ -39,6 +39,12 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then makedepends+=" libatomic-devel" fi +# try to minimize memory usage via debug symbols +# 'LLVM ERROR: out of memory' while compiling gtkrust +if [ "$XBPS_WORDSIZE" = "32" ]; then + nodebug=yes +fi + # we need this because cargo verifies checksums of all files in vendor # crates when it builds and gives us no way to override or update the # file sanely... so just clear out the file list @@ -135,11 +141,11 @@ do_build() { # work around large debug symbols on 32-bit hosts if [ "$XBPS_WORDSIZE" = "32" ]; then - export CFLAGS="${CFLAGS/-g/-g1}" - export CXXFLAGS="${CXXFLAGS/-g/-g1}" + echo "ac_add_options --disable-debug-symbols" >>.mozconfig + echo "ac_add_options --disable-debug" >>.mozconfig export LDFLAGS+=" -Wl,--no-keep-memory" # patch the rust debug level, this is hardcoded - sed -i "s/debug_info = '2'/debug_info = '1'/" \ + vsed -i 's/debug_info = "2"/debug_info = "0"/' \ build/moz.configure/toolchain.configure fi