cargo-c
cargo-c copied to clipboard
add library file soversion symlink in target directory when `cargo cbuild` is performed
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.
cargo-c provides -uninstalled.pc
files for that purpose, they have to be used explicitly as --static
thought.
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)
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. :smile:
However, the temporary path install works fine too, thanks.
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)
Sounds fair, you can close this if you want then.
I'll keep it open and try to document better how things should work.