How to build an existing crate which depends on libc using musl-enabled rustc


Hi all,

I have a working musl-enabled rustc. I am trying to build a crate(say lru_time_cache) from The lru_time_cache requires libc as a dependency, but compilation of libc fails when I run
cargo build --target=x86_64-unknown-linux-musl
error: could not find native static library c, perhaps an -L flag is missing?

Any help would be highly appreciated.

This post is related to the one I sent on stackoverflow earlier today link