-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MACOSX_RPATH not specified in build #534
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
Comments
Add RPATH to dynamic library build on OSX fixes #534 But we will revert if there are any complaints.
Merged. But are you sure that will not cause problems for anyone installing system wide? |
I know that the popular FMOD library sets I am not an expert on this, so I am not 100% sure, but I've done a little research after your prompting. In a case where the application is already linked with a hard-coded system-wide library path ( In a case where a binary that depends on jsoncpp is being compiled again, and does not specify jsoncpp's install path in their binary's rpath list, and doesn't override the linker path their binary uses to find jsoncpp, then the user might run into problems in some (probably atypical) cases. The binary they are compiling will inherit the I looked at The user has a work-around in cases that are breaking. They can either patch the jsoncpp binary's install path using |
This page seems to have good information on the topic, and covers some of the stuff I mentioned that I found in |
Uh oh!
There was an error while loading. Please reload this page.
When using cmake to generate a makefile on OSX, I get this warning:
The warning isn't the problem, though.
I'd like to have the rpath set on the dynamic libraries, because I am not planning to install the library system wide, and plan to place it in my app bundle. I can easily work around it by using
install_name_tool
in my build scripts to hack the library, however the build should probably just set this up to start with.Let me know if that use case needs more explanation, or if you think that is a bad way to use the library. I can also probably fix it and submit a patch, but I want to be sure this wasn't intentional before I do.
The text was updated successfully, but these errors were encountered: