about summary refs log tree commit diff
path: root/pkgs/os-specific/bsd/netbsd/pkgs/ld_elf_so.nix
blob: a350e81d32064a34a9625ad5a65842c8337852c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  lib,
  mkDerivation,
  libc,
  defaultMakeFlags,
}:

mkDerivation {
  path = "libexec/ld.elf_so";
  version = "9.2";
  sha256 = "0ia9mqzdljly0vqfwflm5mzz55k7qsr4rw2bzhivky6k30vgirqa";
  meta.platforms = lib.platforms.netbsd;
  LIBC_PIC = "${libc}/lib/libc_pic.a";
  # Hack to prevent a symlink being installed here for compatibility.
  SHLINKINSTALLDIR = "/usr/libexec";
  USE_FORT = "yes";
  makeFlags = defaultMakeFlags ++ [
    "BINDIR=$(out)/libexec"
    "CLIBOBJ=${libc}/lib"
  ];
  extraPaths = [ libc.src ] ++ libc.extraPaths;
}