summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-08-19 16:36:41 +0200
committerMartin Stransky <stransky@redhat.com>2020-08-19 16:36:41 +0200
commit9b862ea69c5e272137051aaa10a7985fa6d2d074 (patch)
treec848bfcd36fe07e129b26384e423b0b455439b31
parentBuild fixes - spec, patches (diff)
downloadlibrewolf-fedora-ff-9b862ea69c5e272137051aaa10a7985fa6d2d074.tar.gz
librewolf-fedora-ff-9b862ea69c5e272137051aaa10a7985fa6d2d074.tar.bz2
librewolf-fedora-ff-9b862ea69c5e272137051aaa10a7985fa6d2d074.zip
Disabled LTO, build with gcc
-rw-r--r--firefox.spec6
1 files changed, 2 insertions, 4 deletions
diff --git a/firefox.spec b/firefox.spec
index 3e32fe6..c8e3bf7 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -1,7 +1,7 @@
# Set to true if it's going to be submitted as update.
%global release_build 1
%global debug_build 0
-%global build_with_clang 1
+%global build_with_clang 0
%global build_with_asan 0
# Temporary disabled, filed as rhbz#1862012
@@ -586,11 +586,9 @@ MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -fsanitize=address -ldl"
# We don't wantfirefox to use CK_GCM_PARAMS_V3 in nss
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT"
-%if !%{build_with_clang}
echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig
-%endif
%if %{build_with_clang}
echo "export LLVM_PROFDATA=\"llvm-profdata\"" >> .mozconfig
@@ -607,7 +605,7 @@ echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig
%endif
%if 0%{?build_with_pgo}
echo "ac_add_options MOZ_PGO=1" >> .mozconfig
-echo "ac_add_options --enable-lto" >> .mozconfig
+#echo "ac_add_options --enable-lto" >> .mozconfig
%endif
MOZ_SMP_FLAGS=-j1
bgstack15