summaryrefslogtreecommitdiff
path: root/firefox.spec
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-01-04 11:08:37 +0100
committerMartin Stransky <stransky@redhat.com>2019-01-04 11:08:37 +0100
commitddb6e5020fdffe3872b8f4eb49a8a1710c171106 (patch)
tree1a8e4a1a14c26fe30d426cdc3e7c1cb0c0f6ac19 /firefox.spec
parentUpdated PGO/LTO setup (diff)
downloadlibrewolf-fedora-ff-ddb6e5020fdffe3872b8f4eb49a8a1710c171106.tar.gz
librewolf-fedora-ff-ddb6e5020fdffe3872b8f4eb49a8a1710c171106.tar.bz2
librewolf-fedora-ff-ddb6e5020fdffe3872b8f4eb49a8a1710c171106.zip
Enabled LTO+PGO
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