jdupes: fix build on Darwin

jdupes was compiled with HARDEN=1. This adds the '-z' option to `ld`, which is
not available LLVM ld. Only enable the HARDEN option for GNU toolchains.
This commit is contained in:
Daniël de Kok 2020-08-04 09:25:48 +02:00
parent 9ef100c353
commit b87268ff2e

View File

@ -19,10 +19,11 @@ stdenv.mkDerivation rec {
makeFlags = [
"PREFIX=${placeholder "out"}"
"HARDEN=1"
] ++ stdenv.lib.optionals stdenv.isLinux [
"ENABLE_DEDUPE=1"
"STATIC_DEDUPE_H=1"
] ++ stdenv.lib.optionals stdenv.cc.isGNU [
"HARDEN=1"
];
enableParallelBuilding = true;