Hi All, I use this patch for gcc. https://raw.githubusercontent.com/nak5124/build_env/master/gcc_build/patches/gcc/0020-MinGW-w64-Define-__MSVCRT_VERSION__.patch
with MSYS2’s patch https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-gcc-git/0006-gcc-7-branch-Windows-New-feature-to-allow-overriding.patch Windows 10 版のメール<https://go.microsoft.com/fwlink/?LinkId=550986>から送信 差出人: Jacek Caban<mailto:ja...@codeweavers.com> 送信日時: 2017年9月8日 20:00 宛先: mingw-w64-public@lists.sourceforge.net<mailto:mingw-w64-public@lists.sourceforge.net>; Martin Storsjö<mailto:mar...@martin.st> CC: JonY<mailto:jo...@users.sourceforge.net> 件名: Re: [Mingw-w64-public] [PATCHv3 0/3] Initial support for ucrtbase.dll Hi Martin, On 07.09.2017 14:47, Martin Storsjö wrote: > With clang, there's no mechanism with spec files. For compiling, it's > easy to add the -D__MSVCRT_VERSION__ yourself, but for linking, > -lmsvcrt is hardcoded. I send this patch for that yesterday: > > https://reviews.llvm.org/D37530 (adding a separate option like > -mmsvcrt=ucrtbase) > > But the suggestion currently seems to be to make the clang frontend > omit the -lmsvcrt if it detects something like -lmsvcr* among the libs. Nice work! I think that it would be best to avoid users having to mess with -D__MSVCRT_VERSION__ and linking options themselves. clang already has -fms-compatibility-version option. Using that to set proper defines and msvcrt linking options seems like an elegant and right solution. Did you consider that? Thanks, Jacek ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public