gnuapl: fix build with gcc8
This commit is contained in:
parent
394bee72db
commit
1cdaba0c74
@ -11,9 +11,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ readline gettext ncurses ];
|
buildInputs = [ readline gettext ncurses ];
|
||||||
|
|
||||||
# Needed with GCC 7
|
# Needed with GCC 8
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=int-in-bool-context"
|
NIX_CFLAGS_COMPILE = with stdenv.lib; (optionals stdenv.cc.isGNU [
|
||||||
+ stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=null-dereference";
|
"-Wno-error=int-in-bool-context"
|
||||||
|
"-Wno-error=class-memaccess"
|
||||||
|
"-Wno-error=restrict"
|
||||||
|
"-Wno-error=format-truncation"
|
||||||
|
]) ++ optional stdenv.cc.isClang "-Wno-error=null-dereference";
|
||||||
|
|
||||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
|
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user