Statically link libraries for mingw

This commit is contained in:
momo5502
2025-05-31 11:50:34 +02:00
parent 2e1c1b23c9
commit 98010268a6
3 changed files with 10 additions and 3 deletions

View File

@@ -64,6 +64,13 @@ endif()
##########################################
if(MINGW)
add_link_options(
-static-libstdc++
-static-libgcc
-static
-lwinpthread
)
momo_add_c_and_cxx_compile_options(
-Wno-array-bounds
)