[SERVER-36943] Build embedded targets with -Wl,-object_path_lto Created: 30/Aug/18  Updated: 29/Oct/23  Resolved: 12/Sep/18

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

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
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:
v4.0
Sprint: Platforms 2018-09-10, Platforms 2018-09-24
Participants:

 Description   

Without this somewhat magical flag, LTO builds on macOS cannot have debug information available to dsymutil.



 Comments   
Comment by Githook User [ 12/Sep/18 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-36943 Use a magic linker flag so we don't drop out debug info on darwin when using LTO

(cherry picked from commit 3adfd440e833512a7a6fcd85b9dda6c0f15b1710)
Branch: v4.0
https://github.com/mongodb/mongo/commit/347e55ae0d6be484d75484039a5cc50401146b39

Comment by Githook User [ 12/Sep/18 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-36943 Use a magic linker flag so we don't drop out debug info on darwin when using LTO
Branch: master
https://github.com/mongodb/mongo/commit/3adfd440e833512a7a6fcd85b9dda6c0f15b1710

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