anchor.diff:        }
       ''
   
  -    + optionalString (!nativeLibc) (if (!stdenv.isDarwin) then ''
  +    + optionalString (!nativeLibc) (''
         dynamicLinker="$libc/lib/$dynamicLinker"
         echo $dynamicLinker > $out/nix-support/dynamic-linker
   
  
positive.code:       echo $cc $binutils $libc > $out/nix-support/propagated-user-env-packages
  
        echo ${toString extraPackages} > $out/nix-support/propagated-native-build-inputs
      ''
  
      + optionalString (stdenv.isSunOS && nativePrefix != "") ''
        # Solaris needs an additional ld wrapper.
        ldPath="${nativePrefix}/bin"
        exec="$ldPath/ld"
        wrap ld-solaris ${./ld-solaris-wrapper.sh}
      '')
  
      + ''
  
negative.code: { name ? "", stdenv, nativeTools, nativeLibc, nativePrefix ? ""
  , cc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
  , zlib ? null, extraPackages ? [], extraBuildCommands ? ""
  , isGNU ? false, isClang ? cc.isClang or false, gnugrep ? null
  }:
  
  