[SERVER-41970] Handle RPATH updates intelligently Created: 27/Jun/19  Updated: 31/Jul/20  Resolved: 24/Jul/20

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

Type: Improvement Priority: Major - P3
Reporter: Mathew Robinson (Inactive) Assignee: Daniel Moody
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-50043 Removal of Frameworks directory from ... Closed
Related
related to SERVER-27504 Install libraries to $INSTALL_DIR and... Closed
Sprint: Dev Platform 2020-07-27
Participants:
Linked BF Score: 50

 Description   

If $PREFIX is an absolute path then the RPATH used while linking should not include $ORIGIN and should only include $PREFIX_LIBDIR

If $PREFIX_LIBDIR is set, then the path relative to $ORIGIN should reflect this.

Today it is hard coded to $ORIGIN/../lib and so if $PREFIX_LIBDIR is set to book_room then the resulting binaries would not work if --link-model=dynamic.



 Comments   
Comment by Githook User [ 24/Jul/20 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-41970 update RPATH to use PREFIX values
Branch: master
https://github.com/mongodb/mongo/commit/c71ff67d2c705a2ab6712a9176fe355025088912

Comment by Mathew Robinson (Inactive) [ 04/Oct/19 ]

I think this should move on to the "Dynamic Builds by Default" epic. acm do you agree?

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