Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use $ORIGIN in rpath instead of hard-coding #69

Open
ljacobson64 opened this issue Oct 23, 2020 · 0 comments
Open

Use $ORIGIN in rpath instead of hard-coding #69

ljacobson64 opened this issue Oct 23, 2020 · 0 comments

Comments

@ljacobson64
Copy link
Member

Right now, we hard-code the rpath into our libraries as /opt/Trelis-17.1/bin/plugins/svalinn. This hard-coding means that the plugin will not work with different versions of Trelis. One solution to this problem would be to set the rpath to be $ORIGIN, which apparently resolves to wherever the executable or library is at runtime.

See this article: https://medium.com/@nehckl0/creating-relocatable-linux-executables-by-setting-rpath-with-origin-45de573a2e98

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

No branches or pull requests

1 participant