Closed DaGenix closed 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.
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.