busybox: apply clang-cross patch when host is different than build system.
It looks like the original comparrision was incorrect:
host platform - system on which the binary will run
target platform - system for which compiler generates code
(used with compilers)
build platform - system on which the build is invoked
see: https://nixos.org/nixpkgs/manual/#sec-cross-platform-parameters
This change allows to cross compile busybox on OS X
This commit is contained in:
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./busybox-in-store.patch
|
./busybox-in-store.patch
|
||||||
] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.targetPlatform) ./clang-cross.patch;
|
] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./clang-cross.patch;
|
||||||
|
|
||||||
postPatch = "patchShebangs .";
|
postPatch = "patchShebangs .";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user