summaryrefslogtreecommitdiff
path: root/firefox.spec
diff options
context:
space:
mode:
Diffstat (limited to 'firefox.spec')
-rw-r--r--firefox.spec13
1 files changed, 7 insertions, 6 deletions
diff --git a/firefox.spec b/firefox.spec
index d9fe77d..c55c98e 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -9,13 +9,10 @@ ExcludeArch: armv7hl
%global run_tests 0
%global disable_elfhack 1
%global build_with_clang 0
-%if 0%{?fedora} >= 29
-%ifarch x86_64 aarch64
-%global build_with_clang 0
-%endif
-%endif
-%global build_with_pgo 1
%global use_bundled_cbindgen 1
+%ifnarch %{ix86}
+%global build_with_pgo 1
+%endif
%if 0%{?fedora} > 29
%global wayland_backend_default 1
%endif
@@ -532,9 +529,13 @@ echo "ac_add_options --enable-linker=lld" >> .mozconfig
%else
export CC=gcc
export CXX=g++
+export AR="gcc-ar"
+export NM="gcc-nm"
+export RANLIB="gcc-ranlib"
%endif
%if 0%{?build_with_pgo}
echo "ac_add_options MOZ_PGO=1" >> .mozconfig
+echo "ac_add_options --enable-lto" >> .mozconfig
%endif
MOZ_SMP_FLAGS=-j1
bgstack15