Skip to contentSkip to conversation

chromium: Do not enforce gold as default linker

PATCH In review Khem Raj 2 participants 2 messages Jul 10, 2017 – Jul 11, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 chromium: Do not enforce gold as default linker

Provide a knob USEGOLD however to enable it if desired

Cc Denys Dmytriyenko <[email protected]>
---
 recipes-browser/chromium/chromium-browser.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
recipes-browser/chromium/chromium-browser.inc +6 -1
index 094a3d3..1e4fb1e 100644
@@ -200,7 +200,12 @@ python add_ozone_wayland_patches() {
     d.appendVar('SRC_URI', ' ' + d.getVar('OZONE_WAYLAND_EXTRA_PATCHES', False))
 }
 
-USEGOLD ?= "-Dlinux_use_gold_flags=1"
+# uncomment below or set it in a bbappend if you want to use gold linker
+# to link chromium irrespective of system linker, gold speeds up linking
+# chromium ( 8mins to < 2mins on a decent xeon system)
+#
+#USEGOLD = "-Dlinux_use_gold_flags=1"
+USE_GOLD ??= ""
 
 EXTRA_OEGYP = " \
 	-Dangle_use_commit_id=0 \
Signature · 1 line
2.13.2
#1 lore raw

USEGOLD
or
USE_GOLD
?

Quoted 37 lines · Khem Raj

Provide a knob USEGOLD however to enable it if desired

Cc Denys Dmytriyenko <[email protected]>
---
 recipes-browser/chromium/chromium-browser.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
recipes-browser/chromium/chromium-browser.inc +6 -1
index 094a3d3..1e4fb1e 100644
@@ -200,7 +200,12 @@ python add_ozone_wayland_patches() {
     d.appendVar('SRC_URI', ' ' + d.getVar('OZONE_WAYLAND_EXTRA_PATCHES',
 False))
 }
 
-USEGOLD ?= "-Dlinux_use_gold_flags=1"
+# uncomment below or set it in a bbappend if you want to use gold linker
+# to link chromium irrespective of system linker, gold speeds up linking
+# chromium ( 8mins to < 2mins on a decent xeon system)
+#
+#USEGOLD = "-Dlinux_use_gold_flags=1"
+USE_GOLD ??= ""
 
 EXTRA_OEGYP = " \
        -Dangle_use_commit_id=0 \

--
2.13.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel