anchor.diff:          "--disable-shared"
           "--disable-libatomic"  # libatomic requires libc
           "--disable-decimal-float" # libdecnumber requires libc
  +        # maybe only needed on musl, PATH_MAX
  +        # https://github.com/richfelker/musl-cross-make/blob/0867cdf300618d1e3e87a0a939fa4427207ad9d7/litecross/Makefile#L62
  +        "--disable-libmpx"
         ] else [
           (if crossDarwin then "--with-sysroot=${getLib libcCross}/share/sysroot"
            else                "--with-headers=${getDev libcCross}/include")
  
positive.code:             # In uclibc cases, libgomp needs an additional '-ldl'
              # and as I don't know how to pass it, I disable libgomp.
              "--disable-libgomp"
            ] ++ [
            "--enable-threads=posix"
            "--enable-nls"
  
negative.code:                  -e 's|define[[:blank:]]*MUSL_DYNAMIC_LINKER\([0-9]*\)[[:blank:]]"\([^\"]\+\)"$|define MUSL_DYNAMIC_LINKER\1 "${libc.out}\2"|g'
             done
          ''
          + stdenv.lib.optionalString (targetPlatform.libc == "musl")
          ''
              sed -i gcc/config/linux.h -e '1i#undef LOCAL_INCLUDE_DIR'
          ''
  