-
Notifications
You must be signed in to change notification settings - Fork 766
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
soname versioning #165
Comments
Again something that cargo doesn't support rust-lang/cargo#5045 |
In the cargo ticket above it was suggested to use the cdylib-link-lines crate, which supposedly would set the SONAME in the dynamic library. Though I don't know if it also renames the .so file accordingly. I'll have a look once I have a bit of time. |
@ghedo here's a reference that may help Quiche implement soname versioning: https://blogs.gentoo.org/lu_zero/2019/07/01/building-crates-so-they-look-like-cabi-libraries/ Thanks again! |
It evolved to cargo-c, you might find it useful. |
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so as follows: ``` 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. It requires `ffi` feature. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. It requires `ffi` feature. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. It requires `ffi` feature. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. It requires `ffi` feature. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. It requires `ffi` feature. Fixes cloudflare#598 Fixes cloudflare#165
Using cdylib-link-lines, add soname to the generated shlibs. It will add the following to libquiche.so: ``` % readelf -d target/debug/libquiche.so ... 0x000000000000000e (SONAME) Library soname: [libquiche.so.0] ``` For linux, *bsd, android, ios and macos. It requires `ffi` feature. Fixes #598 Fixes #165
Currently, there's just the library file
libquiche.so
It would be better if soname versioning was implemented so
libquiche.so
is a symlink to, for example, the actual library file namedlibquiche.so.0.0.0
The library should also have
DT_SONAME
set appropriately.Could you please implement soname versioning?
The text was updated successfully, but these errors were encountered: