Making sysvinit and mingetty crossbuild
svn path=/nixpkgs/branches/stdenv-updates/; revision=24829
This commit is contained in:
parent
df8db9a701
commit
794b722cca
@ -8,6 +8,10 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g";
|
sha256 = "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
crossAttrs = {
|
||||||
|
makeFlags = "CC=${stdenv.cross.config}-gcc";
|
||||||
|
};
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
ensureDir $out/sbin $out/share/man/man8
|
ensureDir $out/sbin $out/share/man/man8
|
||||||
makeFlagsArray=(SBINDIR=$out/sbin MANDIR=$out/share/man/man8)
|
makeFlagsArray=(SBINDIR=$out/sbin MANDIR=$out/share/man/man8)
|
||||||
|
@ -14,6 +14,10 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man";
|
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man";
|
||||||
|
|
||||||
|
crossAttrs = {
|
||||||
|
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man CC=${stdenv.cross.config}-gcc";
|
||||||
|
};
|
||||||
|
|
||||||
preInstall =
|
preInstall =
|
||||||
''
|
''
|
||||||
substituteInPlace src/Makefile --replace /usr /
|
substituteInPlace src/Makefile --replace /usr /
|
||||||
|
Loading…
Reference in New Issue
Block a user