https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865
--- Comment #42 from Costas Argyris <costas.argyris at gmail dot com> --- Looks like what is being requested here is a windows-host-specific configuration option similar to the existing --disable-win32-registry, like for example --disable-win32-utf8-manifest with its corresponding --enable-win32-utf8-manifest (default). win32-registry is handled in gcc/configure.ac https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/configure.ac;h=d0caf820648e791272e91ac3eb14a62d034e8629;hb=HEAD#l2335 Then the question is what can be done in configure.ac to raise some sort of flag that can be picked up from gcc/config.host, which is where the utf8 resource objects get added. According to its own doc, config.host is invoked by configure, so it should be possible to pass a simple flag from configure to config.host. Perhaps setting a shell variable that can be checked inside config.host, like ${ENABLE_WIN32_UTF8_MANIFEST}, and pull in the utf-8 files only if that is true.