You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Adar Dembo (Jira)" <ji...@apache.org> on 2019/10/11 04:37:00 UTC

[jira] [Resolved] (KUDU-290) Use gold linker from CMake build if gold is available

     [ https://issues.apache.org/jira/browse/KUDU-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adar Dembo resolved KUDU-290.
-----------------------------
    Fix Version/s: 1.8.0
       Resolution: Fixed

We've supported linking with gold for a while. The most recent JIRA to improve gold support was KUDU-2427.

> Use gold linker from CMake build if gold is available
> -----------------------------------------------------
>
>                 Key: KUDU-290
>                 URL: https://issues.apache.org/jira/browse/KUDU-290
>             Project: Kudu
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: M3
>            Reporter: Mike Percy
>            Priority: Major
>             Fix For: 1.8.0
>
>
> The gold linker is significantly faster than gnu ld.
> There is some way to get gcc and clang to link using gold instead of gnu ld, without replacing ld with gold system-wide. The benefit to this is that gnu ld is still required to build certain things, such as kernel modules.
> So what is the magical incantation?
> * For GCC, looks like it's: gcc -fuse-ld=gold
> * For Clang, maybe: clang -use-gold-plugin
> Some links:
> http://llvm.org/docs/GoldPlugin.html
> https://code.google.com/p/chromium/wiki/LinuxFasterBuilds
> https://sourceware.org/ml/binutils/2010-03/msg00068.html
> https://bugs.launchpad.net/ubuntu/+source/llvm-3.0/+bug/1026359



--
This message was sent by Atlassian Jira
(v8.3.4#803005)