1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-08-04 07:01:46 +02:00

Fix built-in runtimes.

Avoid having to share mingw runtimes with the binary by embedding them in the binary via static linking.
This commit is contained in:
Sandu Liviu Catalin
2020-08-19 15:33:41 +03:00
parent fb4fc71169
commit 4e5aa5a292
2 changed files with 7 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
add_compile_options(-g)
endif()
# Include mingw runntime into the binary
# Include MINGW runtime into the binary
if(GCC OR MINGW)
if(BUILTIN_RUNTIMES)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")