On 02/09/16 23:37, Khem Raj wrote:
IIRC gold has its own notions to enable gold
so you need to enable that
On Feb 9, 2016, at 8:18 PM, Trevor Woerner <twoer...@gmail.com> wrote:
I've tried every combination I can think of and no matter what I try, if gold
is the linker the chromium build always errors out with:
collect2: fatal error: cannot find 'ld'
Building with gold does cut the build time of the chromium component
back down.
binutils 2.25, bfd: 00:47:51, 00:44:24, 00:44:25
binutils 2.26, bfd: 02:07:45, 02:09:31, 02:02:42
binutils 2.26, gold: 00:43:49, 00:45:18, 00:42:51
But the only way I could get it to work was to manually perform the
following steps:
$ cd <oe tmp dir>/sysroots/<native sysroot>/usr/bin
$ ln -s <cross toolchain prefix>/<cross toolchain prefix>ld.gold ld.gold
where:
<native sysroot> = x86_64-linux
<cross toolchain prefix> = x86_64-poky-linux
to give:
$ cd <oe-tmp-dir>/sysroots/x86_64-linux
$ ln -s x86_64-poky-linux/x86_64-poky-linux-ld.gold ld.gold
Maybe I can play with the recipe a bit more to get this to work
"automatically"; maybe by setting the LD environment variable
differently or something.
But, as I said before, the last time I tried booting a gold-linked image
on the minnow grub2 refused to work :-(
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core