On Sat, 5 Mar 2022, Pali Rohár wrote:
Object files in archive libcrtdll_extra.a (which are linked into import
library for crtdll.dll) cannot use msvcrt.h as it tries to load symbols at
runtime from msvcrt.dll using GetProcAddress().
So avoid using msvcrt.h and __mingw_get_msvcrt_handle() in crtdll.dll
runtime and directly use "setlocale_codepage_hack" implementation.
This fixes building of lc_locale_func.c for libcrtdll_extra.a archive.
---
mingw-w64-crt/misc/lc_locale_func.c | 31 +++++++++++++++++++----------
1 file changed, 20 insertions(+), 11 deletions(-)
Thanks for the adjustments - now this looked good to me, so I pushed the
patches.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public