mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore(build): link standard libraries statically in MinGW
This commit is contained in:
parent
71a13b65df
commit
90a75ca55c
1 changed files with 5 additions and 0 deletions
|
|
@ -75,6 +75,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GN
|
|||
endif ()
|
||||
endif ()
|
||||
|
||||
# MinGW Options
|
||||
if (WHOA_SYSTEM_WIN AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "-static-libgcc -static-libstdc++ -static")
|
||||
endif ()
|
||||
|
||||
# OS defines
|
||||
if (WHOA_SYSTEM_WIN)
|
||||
# Avoid win32 header hell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue