glibc: enable cross builds on Darwin

add patch file for cross compilation on Darwin
documentation of the changes is at the top of the patch file
This commit is contained in:
Michael Roitzsch
2019-02-17 18:40:50 +01:00
parent 09ca6b39d8
commit a64771d7f1
2 changed files with 105 additions and 1 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ stdenv.mkDerivation ({
./allow-kernel-2.6.32.patch
]
++ lib.optional stdenv.isx86_64 ./fix-x64-abi.patch
++ lib.optional stdenv.hostPlatform.isMusl ./fix-rpc-types-musl-conflicts.patch;
++ lib.optional stdenv.hostPlatform.isMusl ./fix-rpc-types-musl-conflicts.patch
++ lib.optional stdenv.buildPlatform.isDarwin ./darwin-cross-build.patch;
postPatch =
''