···47 else if final.isUClibc then "uclibc"
48 else if final.isAndroid then "bionic"
49 else if final.isLinux /* default */ then "glibc"
0050 else if final.isAvr then "avrlibc"
51 else if final.isNone then "newlib"
52- else if final.isNetBSD then "nblibc"
53 # TODO(@Ericson2314) think more about other operating systems
54 else "native/impure";
55 # Choose what linker we wish to use by default. Someday we might also
···47 else if final.isUClibc then "uclibc"
48 else if final.isAndroid then "bionic"
49 else if final.isLinux /* default */ then "glibc"
50+ else if final.isFreeBSD then "fblibc"
51+ else if final.isNetBSD then "nblibc"
52 else if final.isAvr then "avrlibc"
53 else if final.isNone then "newlib"
054 # TODO(@Ericson2314) think more about other operating systems
55 else "native/impure";
56 # Choose what linker we wish to use by default. Someday we might also
···1+#! @shell@
2+3+declare -a args=()
4+5+token=$1
6+shift
7+8+while (( $# )); do
9+ if [[ "$1" = "$token" ]]; then
10+ mapfile -t -O $(("${#args[@]}" + 1)) args
11+ else
12+ args+=("$1")
13+ fi
14+ shift
15+done
16+17+exec "${args[@]}"
+7-1
pkgs/top-level/all-packages.nix
···14638 # assumption is that or any later version is good.
14639 choose = platform:
14640 /**/ if platform.isDarwin then 11
14641- else if platform.isFreeBSD then 7
14642 else if platform.isAndroid then 12
14643 else if platform.system == "armv6l-linux" then 7 # This fixes armv6 cross-compilation
14644 else if platform.isLinux then 11
···19131 if stdenv.targetPlatform.useiOSPrebuilt
19132 then targetPackages.darwin.iosSdkPkgs.libraries or darwin.iosSdkPkgs.libraries
19133 else targetPackages.darwin.LibsystemCross or (throw "don't yet have a `targetPackages.darwin.LibsystemCross for ${stdenv.targetPlatform.config}`")
019134 else if name == "nblibc" then targetPackages.netbsdCross.libc or netbsdCross.libc
19135 else if name == "wasilibc" then targetPackages.wasilibc or wasilibc
19136 else if name == "relibc" then targetPackages.relibc or relibc
···37855 bsdSetupHook = makeSetupHook {
37856 name = "bsd-setup-hook";
37857 } ../os-specific/bsd/setup-hook.sh;
000003785837859 netbsd = callPackage ../os-specific/bsd/netbsd {};
37860 netbsdCross = callPackage ../os-specific/bsd/netbsd {
···14638 # assumption is that or any later version is good.
14639 choose = platform:
14640 /**/ if platform.isDarwin then 11
14641+ else if platform.isFreeBSD then 12
14642 else if platform.isAndroid then 12
14643 else if platform.system == "armv6l-linux" then 7 # This fixes armv6 cross-compilation
14644 else if platform.isLinux then 11
···19131 if stdenv.targetPlatform.useiOSPrebuilt
19132 then targetPackages.darwin.iosSdkPkgs.libraries or darwin.iosSdkPkgs.libraries
19133 else targetPackages.darwin.LibsystemCross or (throw "don't yet have a `targetPackages.darwin.LibsystemCross for ${stdenv.targetPlatform.config}`")
19134+ else if name == "fblibc" then targetPackages.freebsdCross.libc or freebsdCross.libc
19135 else if name == "nblibc" then targetPackages.netbsdCross.libc or netbsdCross.libc
19136 else if name == "wasilibc" then targetPackages.wasilibc or wasilibc
19137 else if name == "relibc" then targetPackages.relibc or relibc
···37856 bsdSetupHook = makeSetupHook {
37857 name = "bsd-setup-hook";
37858 } ../os-specific/bsd/setup-hook.sh;
37859+37860+ freebsd = callPackage ../os-specific/bsd/freebsd {};
37861+ freebsdCross = callPackage ../os-specific/bsd/freebsd {
37862+ stdenv = crossLibcStdenv;
37863+ };
3786437865 netbsd = callPackage ../os-specific/bsd/netbsd {};
37866 netbsdCross = callPackage ../os-specific/bsd/netbsd {