Skip to content

Commit

Permalink
Replace usage of LD_PRELOAD with LD_LIBRARY_PATH
Browse files Browse the repository at this point in the history
With LD_PRELOAD during the cargo build the dynamic linker complains that
libz_rs.so can't be found.
  • Loading branch information
bjorn3 committed Oct 14, 2024
1 parent 0ae564c commit 732db6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,15 @@ jobs:
- name: "cdylib: default settings"
working-directory: libz-rs-sys-cdylib
env:
LD_PRELOAD: "target/${{matrix.target}}/release/deps/libz_rs.so"
LD_LIBRARY_PATH: "target/${{matrix.target}}/release/deps"
run: |
cargo build --release --target ${{matrix.target}}
cc -o zpipe zpipe.c target/${{matrix.target}}/release/deps/libz_rs.so
./zpipe < Cargo.toml | ./zpipe -d > out.txt
cmp -s Cargo.toml out.txt
- name: "cdylib: rust-allocator"
env:
LD_PRELOAD: "target/${{matrix.target}}/release/deps/libz_rs.so"
LD_LIBRARY_PATH: "target/${{matrix.target}}/release/deps"
working-directory: libz-rs-sys-cdylib
run: |
cargo build --release --target ${{matrix.target}} --no-default-features --features="rust-allocator"
Expand All @@ -279,7 +279,7 @@ jobs:
cmp -s Cargo.toml out.txt
- name: "cdylib: no_std"
env:
LD_PRELOAD: "target/${{matrix.target}}/release/deps/libz_rs.so"
LD_LIBRARY_PATH: "target/${{matrix.target}}/release/deps"
working-directory: libz-rs-sys-cdylib
run: |
cargo build --release --target ${{matrix.target}} --no-default-features
Expand Down

0 comments on commit 732db6c

Please sign in to comment.