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

View File

@ -8,6 +8,10 @@ stdenv.mkDerivation {
sha256 = "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g";
};
crossAttrs = {
makeFlags = "CC=${stdenv.cross.config}-gcc";
};
preInstall = ''
ensureDir $out/sbin $out/share/man/man8
makeFlagsArray=(SBINDIR=$out/sbin MANDIR=$out/share/man/man8)

View File

@ -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 /