Skip to content

Commit

Permalink
jdupes: fix build on Darwin
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danieldk committed Aug 4, 2020
1 parent 9ef100c commit b87268f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/tools/misc/jdupes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b87268f

Please sign in to comment.