anchor.diff:             sed -i "${gnu_h}" \
                  -es'|LIB_SPEC *"\(.*\)$|LIB_SPEC "${extraLibSpec} \1|g'
   
  -           echo "setting \`NATIVE_SYSTEM_HEADER_DIR' and \`STANDARD_INCLUDE_DIR' to \`${libc}/include'..."
  +           echo "setting \`NATIVE_SYSTEM_HEADER_DIR' and \`STANDARD_INCLUDE_DIR' to \`${libc.dev}/include'..."
              sed -i "${gnu_h}" \
  -               -es'|#define STANDARD_INCLUDE_DIR.*$|#define STANDARD_INCLUDE_DIR "${libc}/include"|g'
  +               -es'|#define STANDARD_INCLUDE_DIR.*$|#define STANDARD_INCLUDE_DIR "${libc.dev}/include"|g'
           ''
       else if cross != null || stdenv.cc.libc != null then
         # On NixOS, use the right path to the dynamic linker instead of
  
positive.code:                                           ++ optional (libpthread != null) libpthread)));
  
    EXTRA_TARGET_CFLAGS =
      if cross != null && libcCross != null
      then "-idirafter ${libcCross}/include"
      else null;
  
    EXTRA_TARGET_LDFLAGS =
      if cross != null && libcCross != null
      then "-B${libcCross}/lib -Wl,-L${libcCross}/lib" +
           (optionalString (libpthreadCross != null)
             " -L${libpthreadCross}/lib -Wl,${libpthreadCross.TARGET_LDFLAGS}")
      else null;
  
    passthru =
  
negative.code:              grep -q LIBC_DYNAMIC_LINKER "$header" || continue
               echo "  fixing \`$header'..."
               sed -i "$header" \
                   -e 's|define[[:blank:]]*\([UCG]\+\)LIBC_DYNAMIC_LINKER\([0-9]*\)[[:blank:]]"\([^\"]\+\)"$|define \1LIBC_DYNAMIC_LINKER\2 "${libc.out}\3"|g'
             done
          ''
      else null;
  