This commit fixes a build step for MSYS2/QMK_MSYS with MinGW-w64 toolchain by statically linking libgcc and libstdc++ (instead of copying from invalid path).
The previous method of locating libraries in reference to CMAKE_CXX_COMPILER does not work in MSYS2 environments (with mingw-w64-x86_64-toolchain toolchain package installed).
Previous method expected to find libraries in:
/path_with_cxx_compiler/../x86_64-w64-mingw32/lib/
For reference, required libraries in MSYS2 (MinGW-w64) are located in:
/mingw64/bin/
This commit fixes a build step for MSYS2/QMK_MSYS with MinGW-w64 toolchain by statically linking libgcc and libstdc++ (instead of copying from invalid path).
The previous method of locating libraries in reference to CMAKE_CXX_COMPILER does not work in MSYS2 environments (with
mingw-w64-x86_64-toolchain
toolchain package installed).Previous method expected to find libraries in:
/path_with_cxx_compiler/../x86_64-w64-mingw32/lib/
For reference, required libraries in MSYS2 (MinGW-w64) are located in:
/mingw64/bin/
Install guide for Windows (with this commit):
MSYS2 MINGW64
console and run the following: