newt: unset CPP
Commit 093cc00cdd9d8cf31ecce5bc1dd3645c460a1b98 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
@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_LDFLAGS = "-lncurses";
|
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 = {
|
crossAttrs = {
|
||||||
makeFlags = "CROSS_COMPILE=${stdenv.cc.prefix}";
|
makeFlags = "CROSS_COMPILE=${stdenv.cc.prefix}";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user