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

add library file soversion symlink in target directory when cargo cbuild is performed #240

Open
radhermit opened this issue Dec 24, 2021 · 6 comments
Labels
D-Easy Easy task, takes about 1hour to be complete F-Documentation Related to the documentation

Comments

@radhermit
Copy link

I haven't looked deeply into the code yet, but it seems like it's only created when doing cargo cinstall and not cargo cbuild.

Allowing for creation under cargo cbuild would help simplify development instructions such as those for pkgcraft-bash that ask the user to create the requisite symlink themselves when building projects for development purposes without installing them.

@lu-zero
Copy link
Owner

lu-zero commented Dec 24, 2021

cargo-c provides -uninstalled.pc files for that purpose, they have to be used explicitly as --static thought.

@lu-zero
Copy link
Owner

lu-zero commented Dec 26, 2021

If you want to support uninstalled with shared library it requires to install the dylibs in a local path and patch the rpaths (in particular for macos)

@radhermit
Copy link
Author

cargo-c provides -uninstalled.pc files for that purpose, they have to be used explicitly as --static thought.

Well it didn't seem like it needed that since things still built, at least on linux. 😄

However, the temporary path install works fine too, thanks.

@lu-zero
Copy link
Owner

lu-zero commented Dec 27, 2021

It is the cleanest way that works for every platform, on macOS I'd have to invoke install_name_tool and patch up the binary to add the correct rpaths since there is no other way to set it externally (the env variable is disregarded due to security concerns)

@radhermit
Copy link
Author

Sounds fair, you can close this if you want then.

@lu-zero
Copy link
Owner

lu-zero commented Jan 16, 2022

I'll keep it open and try to document better how things should work.

@lu-zero lu-zero added D-Easy Easy task, takes about 1hour to be complete F-Documentation Related to the documentation labels Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-Easy Easy task, takes about 1hour to be complete F-Documentation Related to the documentation
Projects
None yet
Development

No branches or pull requests

2 participants