Skip to content

Commit

Permalink
Add soname to libquiche.so
Browse files Browse the repository at this point in the history
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 #598
Fixes #165
  • Loading branch information
junhochoi committed May 21, 2024
1 parent 731510e commit 5864aa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions quiche/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ features = ["boringssl-boring-crate", "qlog"]
rustdoc-args = ["--cfg", "docsrs"]

[build-dependencies]
cdylib-link-lines = "0.1"
cmake = "0.1"
pkg-config = { version = "0.3", optional = true }

Expand Down
4 changes: 4 additions & 0 deletions quiche/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,8 @@ fn main() {
if cfg!(feature = "pkg-config-meta") {
write_pkg_config();
}

if target_os != "windows" {
cdylib_link_lines::metabuild();
}
}

0 comments on commit 5864aa3

Please sign in to comment.