From 0456464d53a7cc7eb266a80d8643ac901970885b Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Tue, 10 Sep 2019 10:16:17 +0200 Subject: [PATCH] Added build workarounds for oom on i686 --- thunderbird.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/thunderbird.spec b/thunderbird.spec index 592d9da..4dd1075 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -470,10 +470,20 @@ MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/') # (OOM when linking, rhbz#1238225) export MOZ_DEBUG_FLAGS=" " %endif + +%ifarch %{arm} %{ix86} +MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g0/') +export MOZ_DEBUG_FLAGS=" " +%endif + %if !0%{?build_with_clang} -%ifarch s390 %{arm} ppc aarch64 i686 +%ifarch s390 ppc aarch64 %{ix86} MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" %endif +%ifarch %{arm} +MOZ_LINK_FLAGS="-Wl,--no-keep-memory" +echo "ac_add_options --enable-linker=gold" >> .mozconfig +%endif %endif export CFLAGS=`echo $MOZ_OPT_FLAGS |sed -e 's/-fpermissive//g'`