DarwinTools: fix Darwin cross-compilation
This commit is contained in:
parent
6215da7844
commit
fd70154fca
@ -13,17 +13,17 @@ stdenv.mkDerivation rec {
|
||||
./sw_vers-CFPriv.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace gcc cc
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
export SRCROOT=.
|
||||
export SYMROOT=.
|
||||
export DSTROOT=$out
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"STRIP=${stdenv.cc.targetPrefix}strip"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/usr/* $out
|
||||
rmdir $out/usr
|
||||
|
Loading…
Reference in New Issue
Block a user