DoumanAsh / opusic-sys

Rust bindings to libopus
Boost Software License 1.0
9 stars 7 forks source link

Cross-compile libopus #1

Closed alyssais closed 4 years ago

alyssais commented 4 years ago

I was unable to cross-compile this crate. I fixed this by checking what cross-compiling configure options and environment variables libsodium-sys sets, since that was a crate I had on hand that did cross-compile.

This patch sets CC, CFLAGS, and --host to their appropriate values. CFLAGS is set conditionally if it isn't empty, because otherwise it'll clobber default CFLAGS like -O2.

DoumanAsh commented 4 years ago

Thanks, I'll publish new version soon