Skip to content

Commit

Permalink
john: Disable building with -march=native.
Browse files Browse the repository at this point in the history
It prevents john from running with older CPUs such as Core2Duo and gives
an illegal hardware instruction error on these CPUs.

Signed-off-by: aszlig <[email protected]>
  • Loading branch information
aszlig committed Oct 13, 2015
1 parent e4caf0f commit cf4e2c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/security/john/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-DJOHN_SYSTEMWIDE=1";

preConfigure = "cd src";
configureFlags = [ "--disable-native-macro" ];

installPhase = ''
mkdir -p "$out/share/john"
Expand Down

0 comments on commit cf4e2c4

Please sign in to comment.