[SERVER-19089] Automatically use the gold linker if the compiler honors -fuse-ld Created: 23/Jun/15  Updated: 14/Apr/16  Resolved: 23/Jun/15

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: build-jbr
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-17995 prefer the gold linker if it is avail... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

The gold linker is faster and better than the binutils linker, but most toolchains don't use it by default, and most system installations don't use it by default. However, modern compilers offer an -fuse-ld flag, that can be used to select the gold linker by saying -fuse-ld=gold.

We should test for the ability to use this flag at configure time, and always use gold if available.


Generated at Thu Feb 08 03:49:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.