1 |
commit: dc4967299a9f7e0ec39906bb14e9ab95fb61eb06 |
2 |
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 29 00:11:09 2017 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 29 00:11:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=dc496729 |
7 |
|
8 |
eclass/mozconfig-6.56 - add gold useflag for those wanting to use gold |
9 |
linker |
10 |
|
11 |
eclass/mozconfig-v6.56.eclass | 10 ++++++---- |
12 |
1 file changed, 6 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/eclass/mozconfig-v6.56.eclass b/eclass/mozconfig-v6.56.eclass |
15 |
index 0b3df0e..f1e7262 100644 |
16 |
--- a/eclass/mozconfig-v6.56.eclass |
17 |
+++ b/eclass/mozconfig-v6.56.eclass |
18 |
@@ -84,7 +84,7 @@ inherit flag-o-matic toolchain-funcs mozcoreconf-v5 |
19 |
# Set the variable to any value if the use flag should exist but not be default-enabled. |
20 |
|
21 |
# use-flags common among all mozilla ebuilds |
22 |
-IUSE="${IUSE} dbus debug neon pulseaudio selinux startup-notification system-harfbuzz |
23 |
+IUSE="${IUSE} dbus debug gold neon pulseaudio selinux startup-notification system-harfbuzz |
24 |
system-icu system-jpeg system-libevent system-sqlite system-libvpx" |
25 |
|
26 |
# some notes on deps: |
27 |
@@ -200,8 +200,11 @@ mozconfig_config() { |
28 |
# Disable for testing purposes only |
29 |
mozconfig_annotate 'Upstream bug 1341234' --disable-stylo |
30 |
|
31 |
- # Enable release to we use system ld |
32 |
- mozconfig_annotate 'gentoo ld support' --enable-release |
33 |
+ # Must pass release in order to properly select linker via gold useflag |
34 |
+ mozconfig_annotate 'Enable by Gentoo' --enable-release |
35 |
+ |
36 |
+ # Must pass --enable-gold if using ld.gold |
37 |
+ mozconfig_use_enable gold |
38 |
|
39 |
if has bindist ${IUSE}; then |
40 |
mozconfig_use_enable !bindist official-branding |
41 |
@@ -254,7 +257,6 @@ mozconfig_config() { |
42 |
mozconfig_annotate '' --disable-crashreporter |
43 |
mozconfig_annotate 'Gentoo default' --with-system-png |
44 |
mozconfig_annotate '' --enable-system-ffi |
45 |
- mozconfig_annotate 'Gentoo default to honor system linker' --disable-gold |
46 |
mozconfig_annotate '' --disable-gconf |
47 |
mozconfig_annotate '' --with-intl-api |