[packages/firefox] - moar build-time memory optimizations, seems to work now

baggins baggins at pld-linux.org
Wed Jun 5 22:42:57 CEST 2019


commit b19fba70e7333dec35945e8bcb3c9ab2f984fe0b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jun 5 22:41:49 2019 +0200

    - moar build-time memory optimizations, seems to work now

 firefox.spec | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/firefox.spec b/firefox.spec
index ab010e5..60b0abf 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -23,9 +23,6 @@
 %undefine	with_gold
 %endif
 
-# 67.0 libxul.so: debugedit: canonicalization unexpectedly shrank by one character
-%define		_enable_debug_packages	0
-
 # On updating version, grab CVE links from:
 # https://www.mozilla.org/security/known-vulnerabilities/firefox.html
 # Release Notes:
@@ -393,6 +390,9 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # and as we don't provide them, don't require either
 %define		_noautoreq	liblgpllibs.so libmozavcodec.so libmozavutil.so libmozgtk.so libmozjs.so libmozsandbox.so libxul.so
 
+# 67.0 libxul.so: debugedit: canonicalization unexpectedly shrank by one character
+%define		_enable_debug_packages	0
+
 %description
 Firefox is an open-source web browser, designed for standards
 compliance, performance and portability.
@@ -2137,8 +2137,18 @@ export RANLIB="llvm-ranlib"
 export CC="%{__cc}"
 export CXX="%{__cxx}"
 %endif
+%ifarch %{ix86}
+export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64 -g0"
+export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64 -g0"
+export MOZ_DEBUG_FLAGS=" "
+export LLVM_USE_SPLIT_DWARF=1
+export LLVM_PARALLEL_LINK_JOBS=1
+export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
+export RUSTFLAGS="-Cdebuginfo=0"
+%else
 export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
 export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
+%endif
 
 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu}
 
@@ -2206,11 +2216,6 @@ ac_add_options "MOZ_ALLOW_LEGACY_EXTENSIONS=1"
 %endif
 EOF
 
-%ifarch %{ix86}
-export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
-export RUSTFLAGS="-Cdebuginfo=0"
-%endif
-
 #export MOZ_MAKE_FLAGS="-j1"
 export MOZ_SERVICES_SYNC="1"
 %if %{with pgo}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/firefox.git/commitdiff/b19fba70e7333dec35945e8bcb3c9ab2f984fe0b



More information about the pld-cvs-commit mailing list