[Interest] Gold linker configuration in Qt 5

Ramakanth Kesireddy rama.kesi at gmail.com
Thu Jul 2 15:22:09 CEST 2020


Ok Thanks for your details.

Is there any option in Qt5 configure line to make use of llvm ldd linking?

Best Regards,
Ramakanth
On Thu, 2 Jul, 2020, 15:26 Sérgio Martins, <sergio.martins at kdab.com> wrote:

> On 2020-07-02 10:29, Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Is it recommended to use gold linker or system linker with
> > -no-use-goldlinker while configuring Qt5.6.3 and above?
> >
> > As per my understanding, gold linker should provide faster linking and
> > use
> > less memory than the traditional linker.
> >
> > Please let me know your thoughts in this regard.
>
> I did a quick test a while back, not sure which versions I tested, but
> FWIW:
>
> Linking Qt5Widgets:
>    gnu ld: 5 seconds
>    gold: 3 seconds
>    gold --threads: 1.6 seconds # Requires compilation with
> --enable-threads
>    llvm ldd: 0.7 seconds # Threads enabled by default in newer llvm
>
> ldd was the fastest
>
>
> Regards,
> --
> Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
> Klarälvdalens Datakonsult AB, a KDAB Group company
> Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
> KDAB - The Qt, C++ and OpenGL Experts
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200702/c2acc022/attachment.html>


More information about the Interest mailing list