summaryrefslogtreecommitdiff
path: root/firefox.spec
diff options
context:
space:
mode:
authorDan Horák <dan@danny.cz>2015-07-03 14:47:06 +0200
committerDan Horák <dan@danny.cz>2015-07-03 14:47:06 +0200
commit62bcf95a3d94a34899f4090d6d5dd094d347397e (patch)
treeb178e0a39fa0ac8061ef4a6969cd30a32d4ba96e /firefox.spec
parentadded high contrast icon (diff)
downloadlibrewolf-fedora-ff-62bcf95a3d94a34899f4090d6d5dd094d347397e.tar.gz
librewolf-fedora-ff-62bcf95a3d94a34899f4090d6d5dd094d347397e.tar.bz2
librewolf-fedora-ff-62bcf95a3d94a34899f4090d6d5dd094d347397e.zip
workaround OOM when building on s390
If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which overrides the -g1 from line above and breaks building on s390 (OOM when linking, rhbz#1238225)
Diffstat (limited to 'firefox.spec')
-rw-r--r--firefox.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/firefox.spec b/firefox.spec
index 6e6b4f1..4f8105d 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -473,6 +473,10 @@ MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
%endif
%ifarch s390
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
+# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
+# overrides the -g1 from line above and breaks building on s390
+# (OOM when linking, rhbz#1238225)
+export MOZ_DEBUG_FLAGS=" "
%endif
%ifarch s390 %{arm} ppc aarch64
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
bgstack15