commit: 8fe6aab614c366de47b6fcb24f10882063a2006c Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org> AuthorDate: Sun Sep 4 14:56:45 2016 +0000 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> CommitDate: Sun Sep 4 14:56:45 2016 +0000 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=8fe6aab6
mozcoreconf-v4 - reduce memory footprint for mozilla products on arm,ppc eclass/mozcoreconf-v4.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass index 2ab508b..07afd44 100644 --- a/eclass/mozcoreconf-v4.eclass +++ b/eclass/mozcoreconf-v4.eclass @@ -191,20 +191,24 @@ mozconfig_init() { # Additional ARCH support case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + ;; alpha) # Historically we have needed to add -fPIC manually for 64-bit. # Additionally, alpha should *always* build with -mieee for correct math # operation append-flags -fPIC -mieee ;; - ia64) # Historically we have needed to add this manually for 64-bit append-flags -fPIC ;; - ppc64) append-flags -fPIC -mminimal-toc + # Reduce the memory requirements for linking + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads ;; esac