olm-sys fails to build statically because it cannot find libolm.a
This only applies to the default static linking mode. Dynamic linking works fine. I am trying to build olm-sys 1.0.0. It successfully builds libolm.a and copies it, but then the olm-sys compilation fails with an error like this:
error: could not find native static library `olm`, perhaps an -L flag is missing?
The -L
flag is this:
native=/path/to/repo/target/debug/build/olm-sys-169fe5dfb6609087/out/lib
I looked in the olm-sys build directory, and it seems that libolm.a
has been placed in out/lib64/
rather than out/lib/
. I don't fully understand how build.rs scripts work, but maybe this is the culprit? https://gitlab.gnome.org/BrainBlasted/olm-sys/-/blob/master/build.rs#L51