newt: unset CPP

Commit 093cc00cdd sets the CPP environment
variable by default, confusing the newt Makefile, which expects CPP=gcc for
computing dependencies.
This commit is contained in:
Thomas Tuegel 2017-07-20 10:42:58 -05:00
parent c25199f697
commit 4a0a066f67
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
NIX_LDFLAGS = "-lncurses";
preConfigure = ''
# If CPP is set explicitly, configure and make will not agree about which
# programs to use at different stages.
unset CPP
'';
crossAttrs = {
makeFlags = "CROSS_COMPILE=${stdenv.cc.prefix}";
};