Making sysvinit and mingetty crossbuild

svn path=/nixpkgs/branches/stdenv-updates/; revision=24829
This commit is contained in:
Lluís Batlle i Rossell
2010-11-23 20:47:23 +00:00
parent df8db9a701
commit 794b722cca
2 changed files with 8 additions and 0 deletions
@@ -14,6 +14,10 @@ stdenv.mkDerivation {
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man";
crossAttrs = {
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man CC=${stdenv.cross.config}-gcc";
};
preInstall =
''
substituteInPlace src/Makefile --replace /usr /