Merge pull request #176429 from trofi/workaround-fno-common-for-dieharder

dieharder: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-06 07:12:06 +00:00 committed by GitHub
commit 120cde3c5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
./stdint.patch
];
# Workaround build failure on -fno-common toolchains:
# ld: include/dieharder/parse.h:21: multiple definition of `splitbuf';
# include/dieharder/parse.h:21: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
buildInputs = [ gsl ];
passthru = {