[Mesa-dev] [PATCH] gallium: build ddebug, noop, rbug, trace as part of auxiliary
Emil Velikov
emil.l.velikov at gmail.com
Wed Sep 6 12:08:54 UTC 2017
On 6 September 2017 at 12:11, Marek Olšák <maraeo at gmail.com> wrote:
> On Wed, Sep 6, 2017 at 1:02 PM, Marek Olšák <maraeo at gmail.com> wrote:
>> On Wed, Sep 6, 2017 at 12:38 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>> On 4 September 2017 at 21:36, Marek Olšák <maraeo at gmail.com> wrote:
>>>> From: Marek Olšák <marek.olsak at amd.com>
>>>>
>>>> Building gallium is faster by 7.5 seconds on a 4core/8thread 3GHz CPU.
>>>> (gallium build time is reduced by 15% when building only radeonsi)
>>>>
>>> Some of this can be attributed to a couple libraries less to link.
>>> Speaking of which, did you switch to the gold linker, it should
>>> utilise the multiple cores/threads nicely.
>>
>> Sadly no.
>
> How do I switch to the gold linker?
>
There's multiple ways:
- manually (or via binutils-config –linker ld.gold) set the default /usr/bin/ld
By default Arch has _hardlink_ to ld.bfd
- export LD=ld.gold // haven't tried it
- Add -fuse-ld=gold to the LDFLAGS (you may need a libtool patch [1])
HTH
Emil
[1] http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=f9970d99293faf908fdc153a653fa5781095fb7a
More information about the mesa-dev
mailing list