bintools: fix dynamic linker for NetBSD cross
This will fail with an assertion error on native NetBSD, but it wouldn't have worked anyway. We can fix that later.
This commit is contained in:
parent
7216862bb0
commit
35a0e15ff6
1 changed files with 12 additions and 1 deletions
|
@ -9,11 +9,22 @@
|
||||||
, lib
|
, lib
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, bintools ? null, libc ? null, coreutils ? null, shell ? stdenvNoCC.shell, gnugrep ? null
|
, bintools ? null, libc ? null, coreutils ? null, shell ? stdenvNoCC.shell, gnugrep ? null
|
||||||
, sharedLibraryLoader ? if libc == null then null else lib.getLib libc
|
, netbsd ? null, netbsdCross ? null
|
||||||
|
, sharedLibraryLoader ?
|
||||||
|
if libc == null then
|
||||||
|
null
|
||||||
|
else if stdenvNoCC.targetPlatform.isNetBSD then
|
||||||
|
if libc != targetPackages.netbsdCross.headers then
|
||||||
|
targetPackages.netbsdCross.ld_elf_so
|
||||||
|
else
|
||||||
|
null
|
||||||
|
else
|
||||||
|
lib.getLib libc
|
||||||
, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
|
, nativeTools, noLibc ? false, nativeLibc, nativePrefix ? ""
|
||||||
, propagateDoc ? bintools != null && bintools ? man
|
, propagateDoc ? bintools != null && bintools ? man
|
||||||
, extraPackages ? [], extraBuildCommands ? ""
|
, extraPackages ? [], extraBuildCommands ? ""
|
||||||
, buildPackages ? {}
|
, buildPackages ? {}
|
||||||
|
, targetPackages ? {}
|
||||||
, useMacosReexportHack ? false
|
, useMacosReexportHack ? false
|
||||||
|
|
||||||
# Darwin code signing support utilities
|
# Darwin code signing support utilities
|
||||||
|
|
Loading…
Reference in a new issue