On 11/21/23 18:07, Costas Argyris wrote:
This patch makes the inclusion of the utf8 manifest on the
mingw hosts optional by introducing the configure option
--disable-win32-utf8-manifest (has no effect on non-mingw
hosts).

Bootstrapped OK on i686-w64-mingw32 and x86_64-w64-mingw32
with and without --disable-win32-utf8-manifest.

Costas


I would prefer a AC_ARG_ENABLE to document the option in configure.ac, so it would show with configure --help. It should set new variables to i386/x-mingw32-utf8, utf8rc-mingw32.o and utf8-mingw32.o respectively unless disabled, like so:

host_xmake_mingw=i386/x-mingw32-utf8
host_extra_gcc_objs_mingw=utf8rc-mingw32.o
host_extra_objs=utf8-mingw32.o

And then entries in config.host would be:

  i[34567]86-*-mingw32* | x86_64-*-mingw*)
    host_xm_file=i386/xm-mingw32.h
    host_xmake_file="${host_xmake_file} ${host_xmake_mingw} i386/x-mingw32"
    host_extra_gcc_objs="${host_extra_gcc_objs} ${host_extra_gcc_objs_mingw} driver-mingw32. 
>     host_extra_objs="${host_extra_objs} ${host_extra_objs_mingw}"

Reply via email to