dieharder: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: include/dieharder/parse.h:21: multiple definition of `splitbuf';
      include/dieharder/parse.h:21: first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 18:55:27 +01:00
parent 88e0f07bd6
commit dcb168b109

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 = {