Skip to content

Conversation

davidozog
Copy link
Member

This addresses issue #1194.

The solution is a little strange and derived from some poorly documented features of libtool that I learned about from stackoverflow - so I cite that source.

It essentially adds a dummy symbol to hardcode_libdir_flag_spec, which prevents flags like -Wl,-rpath -Wl,/path/to/libfabric/lib -Wl,-rpath -Wl,/path/to/SOS/lib from being added to the link line for the tests-sos binaries.

@markbrown314
Copy link
Collaborator

Good catch! I did not look at the test-sos binaries. I only checked the libsma's DT_RUNPATH entry.

Copy link
Collaborator

@markbrown314 markbrown314 left a comment

Choose a reason for hiding this comment

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

This works as advertised.

@davidozog
Copy link
Member Author

Good catch! I did not look at the test-sos binaries. I only checked the libsma's DT_RUNPATH entry.

Indeed - I can't take credit, @bcernohous noticed the issue - thanks for catching it early Bob!

@davidozog davidozog merged commit 11d1d66 into Sandia-OpenSHMEM:main Mar 18, 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