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


#1

Hi all,

I have a working musl-enabled rustc. I am trying to build a crate(say lru_time_cache) from crates.io. 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
reporting:
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