[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:
Backports
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: SERVER-31875 Do not dedupe symbols on OS X debug builds

(cherry picked from commit 1855ca00728b3dfebe607af5c5e396976abc1f68)
Branch: v3.6
https://github.com/mongodb/mongo/commit/201fb860e1ba6dd43e12f0dd30d7af31852a3796

Comment by Githook User [ 17/Nov/17 ]

Author:

{'name': 'Geert Bosch', 'username': 'GeertBosch', 'email': 'geert@mongodb.com'}

Message: SERVER-31875 Do not dedupe symbols on OS X debug builds
Branch: master
https://github.com/mongodb/mongo/commit/1855ca00728b3dfebe607af5c5e396976abc1f68

Generated at Thu Feb 08 04:28:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.