netbsd.ld_elf_so: fix build

Tested building pkgsCross.x86_64-netbsd.netbsd.ld_elf_so from
x86_64-linux.
This commit is contained in:
Alyssa Ross 2021-04-22 10:34:56 +00:00
parent dde5369c50
commit 2a16327a83
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -633,7 +633,11 @@ let
version = "8.0";
sha256 = "1jmqpi0kg2daiqnvpwdyfy8rpnszxsm70sxizz0r7wn53xjr5hva";
meta.platforms = lib.platforms.netbsd;
LIBC_PIC = "${stdenv.cc.libc}/lib/libc_pic.a";
# Hack to prevent a symlink being installed here for compatibility.
SHLINKINSTALLDIR = "/usr/libexec";
USE_FORT = "yes";
makeFlags = [ "CLIBOBJ=${stdenv.cc.libc}/lib" ];
extraPaths = [ libc.src ] ++ libc.extraPaths;
};