Zhongteng Gui <[email protected]> wrote: > Hi, I found that many libraries provided by mingw-w64-crt are actually empty, > for example, libmingwthrd and libmoldname. Unfortunately, they're still > hardcoded in GCC's default specs, so I'd like to first remove them from there, > then maybe in the future we can remove them from mingw-w64.
These empty libraries are kept exactly to avoid breaking older gcc/clang versions, as they hardcode them. We also had briefly discussed an idea to move contents of libmingwex.a directly into import libraries (e.g. libucrt.a). The interaction between libmingwex.a and import libraries sometimes causes linker errors, e.g. when LTO is involved and import library references symbol from libmingwex.a or vice versa. If we did this, we would have to similarly make libmingwex.a empty so that older gcc/clang versions continue to work. Pali (CC'd) may also have something to say about it. - Kirill Makurin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
