I have a build script like this:
println!("cargo:rustc-link-lib=libname");
It works if a static (.a) version of the library is installed, but if only a dynamic version (.so) is installed, building fails with an error like usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -llibname: No such file or directory
.
You must log in or # to comment.