View previous topic :: View next topic |
Author |
Message |
KWhat l33t


Joined: 04 Sep 2005 Posts: 660 Location: Los Angeles
|
Posted: Mon Mar 23, 2020 1:32 am Post subject: [Solved] Compiling the kernel without ld.gold |
|
|
Hi,
I have default-gold set and I was wondering how to compile the kernel. It seems that ld.gold is not support for kernel compilation, however, I am not sure how to workaround this shortfall. Is it possible to easily switch between ld.bfd and ld.gold? binutils-config doesn't seem to support the --linker flag. I also tried CFLAGS="-fuse-ld=ld.bfd" make oldconfig but this also complains about gold.
Thanks
Last edited by KWhat on Mon Mar 23, 2020 2:35 am; edited 1 time in total |
|
Back to top |
|
 |
Ionen Developer


Joined: 06 Dec 2018 Posts: 2896
|
Posted: Mon Mar 23, 2020 2:13 am Post subject: |
|
|
|
|
Back to top |
|
 |
Goverp Advocate


Joined: 07 Mar 2007 Posts: 2206
|
Posted: Mon Mar 23, 2020 9:25 am Post subject: |
|
|
I'm finding an steadily-increasing number of packages that break with the gold linker. So I've reverted to default bld, and instead use a packages.env file to enable gold on the packages that need it or there's a significant time advantage. That seems to be stuff involving LLVM. _________________ Greybeard |
|
Back to top |
|
 |
|