stdenv: Improve/fix FreeBSD support

Able to bootstrap stdenv on FreeBSD by compiling various dependencies
using built-in FreeBSD tools so mostly works now

Closes: https://github.com/NixOS/nixpkgs/pull/81459
This commit is contained in:
Ashish SHUKLA
2021-02-07 15:24:16 +00:00
committed by Alyssa Ross
parent 14700018de
commit 1c39662e63
5 changed files with 272 additions and 156 deletions
@@ -64,6 +64,7 @@ let
else if targetPlatform.system == "powerpc-linux" then "${libc_lib}/lib/ld.so.1"
else if targetPlatform.isMips then "${libc_lib}/lib/ld.so.1"
else if targetPlatform.isDarwin then "/usr/lib/dyld"
else if targetPlatform.isFreeBSD then "/libexec/ld-elf.so.1"
else if lib.hasSuffix "pc-gnu" targetPlatform.config then "ld.so.1"
else null;