forked from mirrors/nixpkgs
netbsdCross.ld_elf_so: use same stage's libc
We need netbsdCross.ld_elf_so to be the dynamic linker in cross netbsd's bintools, but netbsdCross doesn't have a libc in stdenv. So instead, use netbsdCross.libc for netbsdCross.ld_elf_so.
This commit is contained in:
parent
603f80066e
commit
7216862bb0
|
@ -753,11 +753,11 @@ in lib.makeScopeWithSplicing
|
|||
version = "9.1";
|
||||
sha256 = "0ia9mqzdljly0vqfwflm5mzz55k7qsr4rw2bzhivky6k30vgirqa";
|
||||
meta.platforms = lib.platforms.netbsd;
|
||||
LIBC_PIC = "${stdenv.cc.libc}/lib/libc_pic.a";
|
||||
LIBC_PIC = "${self.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" ];
|
||||
makeFlags = [ "BINDIR=$(out)/libexec" "CLIBOBJ=${self.libc}/lib" ];
|
||||
extraPaths = with self; [ libc.src ] ++ libc.extraPaths;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue