[
https://issues.apache.org/jira/browse/KUDU-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18116861#comment-18116861
]
ASF subversion and git services commented on KUDU-3805:
-------------------------------------------------------
Commit 82425427e5cfb547318e20e6e8ad23b77674996f in kudu's branch
refs/heads/master from Alexey Serbin
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=82425427e ]
KUDU-3805 prefer using mold linker when available
This changelist enables using the mold linker [1] for building Kudu
and addresses KUDU-3614 as well.
With the mold linker, it was necessary to switch to using --exclude-libs
for gflags and glog libraries to avoid exporting their symbols.
It seems the mold linker doesn't recognize and interpret the *google::*
pattern the same way as a GNU ld-compatible linker does. With that,
I removed corresponding sections from src/kudu/client/symbols.map.
Maybe, we need to eventually switch to using --exclude-libs=ALL and
avoid using the --version-script provisions, but it's a separate story.
[1] https://github.com/rui314/mold
Change-Id: I9cd76b3cfa96b6ebd119a95d24834fe154e56aa0
Reviewed-on: http://gerrit.cloudera.org:8080/24862
Reviewed-by: Abhishek Chennaka <[email protected]>
Tested-by: Alexey Serbin <[email protected]>
> Use the mold linker for building Kudu
> -------------------------------------
>
> Key: KUDU-3805
> URL: https://issues.apache.org/jira/browse/KUDU-3805
> Project: Kudu
> Issue Type: Improvement
> Reporter: Alexey Serbin
> Assignee: Alexey Serbin
> Priority: Major
>
> The [mold linker|https://github.com/rui314/mold] is faster and uses less
> memory than standard GNU ld and LLVM's lld linkers. To reduce Kudu build
> times and memory usage during build, it makes sense to switch to the mold
> linker.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)