mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #273767 from raphaelr/fix/b2sum-clang
b2sum: Fix build on darwin
This commit is contained in:
commit
f2b10b396d
@ -23,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
buildInputs = [ openmp ];
|
||||
|
||||
buildFlags = [ (lib.optional (openmp == null) "NO_OPENMP=1") ];
|
||||
|
||||
# clang builds require at least C99 or the build fails with:
|
||||
# error: unknown type name 'inline'
|
||||
env.NIX_CFLAGS_COMPILE = "-std=c99";
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user