sysvinit: Rely on cc-wrapper to export this env var

This commit is contained in:
hsloan 2017-06-28 16:43:18 -04:00 committed by John Ericson
parent a291194d2f
commit 14d3ed8c38

View File

@ -15,11 +15,7 @@ stdenv.mkDerivation {
sed -i -e "s,/sbin/,$out/sbin/," src/halt.c src/init.c src/paths.h
'';
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man";
crossAttrs = {
makeFlags = "SULOGINLIBS=-lcrypt ROOT=$(out) MANDIR=/share/man CC=${stdenv.cross.config}-gcc";
};
makeFlags = [ "SULOGINLIBS=-lcrypt" "ROOT=$(out)" "MANDIR=/share/man" ];
preInstall =
''