Skip to content

Commit

Permalink
gnuapl: Fix build with GCC 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dezgeg committed Nov 16, 2017
1 parent 24f2e73 commit 2b27a46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/interpreters/gnu-apl/default.nix
Expand Up @@ -12,6 +12,9 @@ stdenv.mkDerivation rec {

buildInputs = [ readline gettext ncurses ];

# Needed with GCC 7
NIX_CFLAGS_COMPILE = "-Wno-error=int-in-bool-context";

patchPhase = optionalString stdenv.isDarwin ''
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
'';
Expand Down

0 comments on commit 2b27a46

Please sign in to comment.