Closed ghuls closed 6 months ago
After symlinking zlib, it works.
❯ ln -s /lib64/libz.so ./target/x86_64-unknown-linux-gnu/release/deps/libz.so
❯ PATH=/software/zig/zig-linux-x86_64-0.11.0:$PATH cargo zigbuild --target x86_64-unknown-linux-gnu.2.17 --release
Compiling fasten v0.7.2 (software/fasten)
Finished release [optimized] target(s) in 1.36s
Is this due to -nodefaultlibs
?
Is there a way to avoid
note: error: unable to find Dynamic system library 'z' using strategy 'no_fallback'. searched paths:
? when compiling withcargo zigbuild --targ et x86_64-unknown-linux-gnu.2.17
.For some programs an error like this shows up.