Fix stack overflow on MinGW32

This commit is contained in:
Pali Rohár 2011-12-24 16:16:18 +01:00
parent 125132b62a
commit 98803131db

View file

@ -730,7 +730,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
endif()
if(WIN32 AND MINGW AND ENABLE_STATIC)
set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc")
set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc -Wl,--stack,10485760")
endif()
########### next target ###############