List:Commits« Previous MessageNext Message »
From:Vladislav Vaintroub Date:February 25 2009 11:32am
Subject:bzr commit into mysql-5.1-bugteam branch (vvaintroub:2820) Bug#43082
View as plain text  
#At file:///G:/bzr/mysql-5.1-bugteam/ based on revid:davi.arnaut@stripped

 2820 Vladislav Vaintroub	2009-02-25
      Bug#43082: mysqld 32 bit cannot use big buffers due to 2GB usermode address space limit
      
      Fix: use /LARGEADDRESSAWARE link option when linking 32 bit executables

    modified:
      CMakeLists.txt
=== modified file 'CMakeLists.txt'
--- a/CMakeLists.txt	2009-01-23 12:22:05 +0000
+++ b/CMakeLists.txt	2009-02-25 11:32:37 +0000
@@ -139,6 +139,10 @@ IF(MSVC)
     SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MAP /MAPINFO:EXPORTS")
     SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:1048576")
 
+    IF(CMAKE_SIZEOF_VOID_P MATCHES 4)
+      SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
+    ENDIF(CMAKE_SIZEOF_VOID_P MATCHES 4)
+		
     # remove support for Exception handling
     STRING(REPLACE "/GX"   "" CMAKE_CXX_FLAGS            ${CMAKE_CXX_FLAGS})
     STRING(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS            ${CMAKE_CXX_FLAGS})


Attachment: [text/bzr-bundle] bzr/vvaintroub@mysql.com-20090225113237-nkqmn83p92rra9sn.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (vvaintroub:2820) Bug#43082Vladislav Vaintroub25 Feb