[SERVER-31875] Fix long link times on OS X by passing -no_deduplicate to the linker Created: 08/Nov/17 Updated: 30/Oct/23 Resolved: 17/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.2, 3.7.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Geert Bosch | Assignee: | Geert Bosch |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Backport Requested: |
v3.6
|
||||
| Sprint: | Storage 2017-11-13, Storage 2017-12-04 | ||||
| Participants: | |||||
| Description |
|
Debug builds on OS X take about 45 seconds on my system to link, with the linker spending almost all of its time deduping symbols. By adding the -Wl,-no_deduplicate flag to LINKFLAGS we cut the link time to 4 seconds. Optimized builds do not seem to be affected. |
| Comments |
| Comment by Githook User [ 03/Jan/18 ] |
|
Author: {'name': 'Geert Bosch', 'username': 'GeertBosch', 'email': 'geert@mongodb.com'}Message: (cherry picked from commit 1855ca00728b3dfebe607af5c5e396976abc1f68) |
| Comment by Githook User [ 17/Nov/17 ] |
|
Author: {'name': 'Geert Bosch', 'username': 'GeertBosch', 'email': 'geert@mongodb.com'}Message: |