Skip to content

Commit b1b4d20

Browse files
committed
use the zlib (not the rust) version in the SONAME
1 parent ab81feb commit b1b4d20

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ jobs:
336336
cargo cinstall --offline --release --destdir=/tmp/cargo-cbuild-libz-rs
337337
tree /tmp/cargo-cbuild-libz-rs
338338
# verify that the SONAME is set and includes a version
339-
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]+'
339+
objdump -p target/x86_64-unknown-linux-gnu/release/libz_rs.so | awk '/SONAME/{print $2}' | grep -E 'libz_rs\.so\.1'
340340
# build zpipe with our library
341341
cc -o zpipe zpipe.c -L/tmp/cargo-cbuild-libz-rs/usr/local/lib/x86_64-linux-gnu -lz_rs
342342
export LD_LIBRARY_PATH=/tmp/cargo-cbuild-libz-rs/usr/local/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH

libz-rs-sys-cdylib/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ capi = []
2525
libz-rs-sys = { version = "0.4.0", path = "../libz-rs-sys", default-features = false }
2626

2727
[package.metadata.capi.library]
28+
version = "1.3.0" # the zlib api version we match
2829
name = "z_rs"
2930

3031
[package.metadata.capi.header]

0 commit comments

Comments
 (0)