[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: |
|
||||||||
| 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. |