about summary refs log tree commit diff
path: root/pkgs/os-specific/bsd/netbsd/pkgs/ld_elf_so.nix
blob: 1496ad6a0e88487c0dbf067fb1b65b7851d98834 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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;
}