···4747 else if final.isUClibc then "uclibc"
4848 else if final.isAndroid then "bionic"
4949 else if final.isLinux /* default */ then "glibc"
5050+ else if final.isFreeBSD then "fblibc"
5151+ else if final.isNetBSD then "nblibc"
5052 else if final.isAvr then "avrlibc"
5153 else if final.isNone then "newlib"
5252- else if final.isNetBSD then "nblibc"
5354 # TODO(@Ericson2314) think more about other operating systems
5455 else "native/impure";
5556 # Choose what linker we wish to use by default. Someday we might also
···11+#! @shell@
22+33+declare -a args=()
44+55+token=$1
66+shift
77+88+while (( $# )); do
99+ if [[ "$1" = "$token" ]]; then
1010+ mapfile -t -O $(("${#args[@]}" + 1)) args
1111+ else
1212+ args+=("$1")
1313+ fi
1414+ shift
1515+done
1616+1717+exec "${args[@]}"
+7-1
pkgs/top-level/all-packages.nix
···1463814638 # assumption is that or any later version is good.
1463914639 choose = platform:
1464014640 /**/ if platform.isDarwin then 11
1464114641- else if platform.isFreeBSD then 7
1464114641+ else if platform.isFreeBSD then 12
1464214642 else if platform.isAndroid then 12
1464314643 else if platform.system == "armv6l-linux" then 7 # This fixes armv6 cross-compilation
1464414644 else if platform.isLinux then 11
···1913119131 if stdenv.targetPlatform.useiOSPrebuilt
1913219132 then targetPackages.darwin.iosSdkPkgs.libraries or darwin.iosSdkPkgs.libraries
1913319133 else targetPackages.darwin.LibsystemCross or (throw "don't yet have a `targetPackages.darwin.LibsystemCross for ${stdenv.targetPlatform.config}`")
1913419134+ else if name == "fblibc" then targetPackages.freebsdCross.libc or freebsdCross.libc
1913419135 else if name == "nblibc" then targetPackages.netbsdCross.libc or netbsdCross.libc
1913519136 else if name == "wasilibc" then targetPackages.wasilibc or wasilibc
1913619137 else if name == "relibc" then targetPackages.relibc or relibc
···3785537856 bsdSetupHook = makeSetupHook {
3785637857 name = "bsd-setup-hook";
3785737858 } ../os-specific/bsd/setup-hook.sh;
3785937859+3786037860+ freebsd = callPackage ../os-specific/bsd/freebsd {};
3786137861+ freebsdCross = callPackage ../os-specific/bsd/freebsd {
3786237862+ stdenv = crossLibcStdenv;
3786337863+ };
37858378643785937865 netbsd = callPackage ../os-specific/bsd/netbsd {};
3786037866 netbsdCross = callPackage ../os-specific/bsd/netbsd {