[SERVER-69507] Rpath should only be set on dynamic builds Created: 08/Sep/22  Updated: 29/Oct/23  Resolved: 18/Oct/22

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 6.1.1, 5.0.14, 6.0.3, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Kevin Pulo Assignee: Trevor Guidry
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.1, v6.0, v5.0
Participants:

 Description   

Currently -rpath (which sets DT_RUNPATH) of $ORIGIN/../lib is always used when linking binaries, but this should only be done when --link-model=dynamic has been specified to scons (since its purpose is only to allow the dynamic linker to resolve our internal .so libs, when they exist).



 Comments   
Comment by Githook User [ 26/Oct/22 ]

Author:

{'name': 'Trevor Guidry', 'email': 'trevor.guidry@mongodb.com'}

Message: SERVER-69507 only set rpath when link-model is dynamic

(cherry picked from commit eff572b7c1a78919e3d79957000a11e4d0dcf985)
Branch: v5.0
https://github.com/mongodb/mongo/commit/80b4fc675eae7aa5671d90e3e281272f616588a7

Comment by Githook User [ 24/Oct/22 ]

Author:

{'name': 'Trevor Guidry', 'email': 'trevor.guidry@mongodb.com'}

Message: SERVER-69507 only set rpath when link-model is dynamic

(cherry picked from commit eff572b7c1a78919e3d79957000a11e4d0dcf985)
Branch: v6.0
https://github.com/mongodb/mongo/commit/ddf194c91328d8680890844babd9991462175d4a

Comment by Githook User [ 24/Oct/22 ]

Author:

{'name': 'Trevor Guidry', 'email': 'trevor.guidry@mongodb.com'}

Message: SERVER-69507 only set rpath when link-model is dynamic

(cherry picked from commit eff572b7c1a78919e3d79957000a11e4d0dcf985)
Branch: v6.1
https://github.com/mongodb/mongo/commit/60140fa917d003db7b37325b7164e4c740077d0c

Comment by Githook User [ 18/Oct/22 ]

Author:

{'name': 'Trevor Guidry', 'email': 'trevor.guidry@mongodb.com'}

Message: SERVER-69507 only set rpath when link-model is dynamic
Branch: master
https://github.com/mongodb/mongo/commit/eff572b7c1a78919e3d79957000a11e4d0dcf985

Generated at Thu Feb 08 06:13:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.