Skip to content

Commit

Permalink
use the zlib (not the rust) version in the SONAME
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Dec 2, 2024
1 parent ab81feb commit b1b4d20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ jobs:
cargo cinstall --offline --release --destdir=/tmp/cargo-cbuild-libz-rs
tree /tmp/cargo-cbuild-libz-rs
# verify that the SONAME is set and includes a version
objdump -p target/x86_64-unknown-linux-gnu/release/libz_rs.so | awk '/SONAME/{print $2}' | grep -E 'libz_rs\.so\.[0-9]+\.[0-9]+'
objdump -p target/x86_64-unknown-linux-gnu/release/libz_rs.so | awk '/SONAME/{print $2}' | grep -E 'libz_rs\.so\.1'
# build zpipe with our library
cc -o zpipe zpipe.c -L/tmp/cargo-cbuild-libz-rs/usr/local/lib/x86_64-linux-gnu -lz_rs
export LD_LIBRARY_PATH=/tmp/cargo-cbuild-libz-rs/usr/local/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
Expand Down
1 change: 1 addition & 0 deletions libz-rs-sys-cdylib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ capi = []
libz-rs-sys = { version = "0.4.0", path = "../libz-rs-sys", default-features = false }

[package.metadata.capi.library]
version = "1.3.0" # the zlib api version we match
name = "z_rs"

[package.metadata.capi.header]
Expand Down

0 comments on commit b1b4d20

Please sign in to comment.