1 |
commit: 8fe6aab614c366de47b6fcb24f10882063a2006c |
2 |
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 4 14:56:45 2016 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 4 14:56:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=8fe6aab6 |
7 |
|
8 |
mozcoreconf-v4 - reduce memory footprint for mozilla products on arm,ppc |
9 |
|
10 |
eclass/mozcoreconf-v4.eclass | 8 ++++++-- |
11 |
1 file changed, 6 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass |
14 |
index 2ab508b..07afd44 100644 |
15 |
--- a/eclass/mozcoreconf-v4.eclass |
16 |
+++ b/eclass/mozcoreconf-v4.eclass |
17 |
@@ -191,20 +191,24 @@ mozconfig_init() { |
18 |
|
19 |
# Additional ARCH support |
20 |
case "${ARCH}" in |
21 |
+ arm) |
22 |
+ # Reduce the memory requirements for linking |
23 |
+ append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads |
24 |
+ ;; |
25 |
alpha) |
26 |
# Historically we have needed to add -fPIC manually for 64-bit. |
27 |
# Additionally, alpha should *always* build with -mieee for correct math |
28 |
# operation |
29 |
append-flags -fPIC -mieee |
30 |
;; |
31 |
- |
32 |
ia64) |
33 |
# Historically we have needed to add this manually for 64-bit |
34 |
append-flags -fPIC |
35 |
;; |
36 |
- |
37 |
ppc64) |
38 |
append-flags -fPIC -mminimal-toc |
39 |
+ # Reduce the memory requirements for linking |
40 |
+ append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads |
41 |
;; |
42 |
esac |