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:
parent
c25199f697
commit
4a0a066f67
1 changed files with 6 additions and 0 deletions
|
@ -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}";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue