https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108027 --- Comment #11 from LIU Hao <lh_mouse at 126 dot com> --- It has nothing to do with MSYS2. MSYS2 is merely an example to show that .la files are not necessary and should not be installed.