fix(launch_manager): link -lrt for shm_open/shm_unlink - #618
hskang-amelia wants to merge 5 commits into
Conversation
(cherry picked from commit 04f2504) Signed-off-by: amelia@ivis.ai <amelia@ivis.ai>
|
Documentation preview for this pull request is available at: |
cameron-craig-etas
left a comment
There was a problem hiding this comment.
We could try conditionally linking against librt for glibc versions < 2.34.
But I think that not really necessary, and just complicates the BUILD files.
So the fix looks good from my point of view.
Address review feedback on eclipse-score#618: glibc 2.34 merged librt and libpthread into libc, but the explicit links stay for older glibc versions. Add a comment in the BUILD file so this is not rediscovered later. Signed-off-by: amelia@ivis.ai <amelia@ivis.ai>
The comment about glibc v2.34 folding libpthread/libdl/libutil/ libanl/librt into libc had a trailing space, which failed the Common PR checks formatting check. Signed-off-by: amelia@ivis.ai <amelia@ivis.ai> Signed-off-by: hskang <amelia@ivis.ai>
|
Hi @hskang-amelia, what is the reason for this pull request being marked as draft? Do you have more changes planned? |
Sorry, I missed this — I wasn't aware I needed to explicitly mark it ready for review. There are no further changes planned, and it's already got an approval, so I've switched it to ready for review. Thanks for the ping! |
Description
launch_manager'scc_binaryonly linked-lpthreadon Linux, butprocess_group_manager.cpp/details/process_launcher.cppboth callshm_open/shm_unlink, which live inlibrton glibc < 2.34 (2.34 foldedlibrtintolibc, masking the missing link dependency on newer glibc).Adds
-lrtalongside-lpthreadin the Linuxlinkopts.Related ticket
closes #617