summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorunknown <joerg@trift2.>2007-08-02 21:59:26 +0200
committerunknown <joerg@trift2.>2007-08-02 21:59:26 +0200
commit8df5a067c33191720542790d3963438cdacaa6cc (patch)
tree86e04e7fcee6967cea8ed617fa63ac8d22e71e84 /CMakeLists.txt
parente8ed87ebfbe61869a41c4d28110363c4b5a1a2f9 (diff)
downloadmariadb-git-8df5a067c33191720542790d3963438cdacaa6cc.tar.gz
Limit stack size of the server to 1 MB.
Manual transfer of the fix for bug#20815 from 5.0 to 5.1 CMakeLists.txt: Limit stack size of the server to 1 MB. Manual transfer of the fix for bug#20815 from 5.0 to 5.1
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6395ae17a14..48ae7837c1a 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,6 +136,9 @@ IF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR
# generate .map files
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MAP /MAPINFO:EXPORTS")
+ # set stack size (see bug#20815)
+ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:1048576")
+
# remove support for Exception handling
STRING(REPLACE "/GX" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
STRING(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})