-
Notifications
You must be signed in to change notification settings - Fork 107
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
[cmake] Fix libneko.so loading error when installing to /usr/local
#271
Conversation
868056f
to
fdbd096
Compare
Reverted so this doesn't change the default value of |
This way rpath is correctly set by default, avoiding errors like: `libneko.so.2: cannot open shared object file` when installing to /usr/local/
If rpath is set correctly then this is not necessary
Only build with install path if RELOCATABLE is on, otherwise we can stick to the default build rpath. We were setting these options to their default values: CMAKE_MACOS_RPATH, CMAKE_SKIP_BUILD_RPATH, CMAKE_SKIP_INSTALL_RPATH
a9124e4
to
5dd4dbe
Compare
I can't really review this, but CI is green so I'll assume that it's good! |
Do the tests still pass if RELOCATABLE is set to OFF? |
Yes, I ran the tests locally with With |
…on macOS" This reverts commit 9638b62. As discussed in #271 (comment)
Fixes the error:
neko: error while loading shared libraries: libneko.so.2: cannot open shared object file: No such file or directory
which happens when installing to
/usr/local/
, the default location when building from source.