Skip to content

Conversation

markbrown314
Copy link
Collaborator

Issue #1162

The build system relies on libtool to build libraries. libtool will insert an rpath into libraries unless you set hardcode_into_libs = no. Modified configury to set hardcode_into_libs if disable-rpath is set.

Issue Sandia-OpenSHMEM#1162

The build system relies on libtool to build libraries. libtool will
insert an rpath into libraries unless you set hardcode_into_libs = no.
Modified configury to set hardcode_into_libs if disable-rpath is set.

Signed-off-by: Mark F. Brown <mark.f.brown@intel.com>
Copy link
Member

@davidozog davidozog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pretty much does the right thing on my end (at least locally, Ubuntu 24.04)

It has the interesting effect that pmi-simple is not found by ldd unless explicitly setting LD_LIBRARY_PATH or LD_PRELOAD, but I think that's fine... make check still works in this case, so we could add a --disable-rpath row in CI if so desired. (but maybe that's not very valuable).

Anyway, I'll keep an eye on it, but it certainly seems to fix #1162

Nice find on hardcode_into_libs @markbrown314! And thanks for the fix!

@markbrown314 markbrown314 merged commit 5c52aa5 into Sandia-OpenSHMEM:main Mar 6, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants