DaGenix / rust-crypto

A (mostly) pure-Rust implementation of various cryptographic algorithms.
Apache License 2.0
1.39k stars 295 forks source link

Only use Clang on OpenBSD - default to cc (generally GCC) on other platforms #355

Closed DaGenix closed 8 years ago

DaGenix commented 8 years ago

There have been reports that GCC doesn't compile Rust-Crypto on OpenBSD while Clang works fine. However, on Linux platforms (at least Ubuntu 14.04+), GCC works fine and clang may not be installed. So, Only use Clang by default on OpenBSD and continue to use GCC (as "cc") everywhere else.

mmcco commented 8 years ago

Speaking as an OpenBSD port maintainer, the best way to do this is usually to just use the $CC environment variable. That way, it defaults to the system compiler and the person building can specify another compiler if they want to.