List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:May 24 2011 11:42am
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4409) Bug#58076
View as plain text  
#At file:///C:/mysql/7.0/ based on revid:magnus.blaudd@oracle.com-20110524090555-2vcqggyxwgbxr7xa

 4409 Magnus Blåudd	2011-05-24
      ndb
       - add MCP patch for BUG#58076 libmysql fails incremental build in some VS versions
       - turn off incremental linking accoring to MS recomendation, they will not issue a hotfix
         although issue is fixed internally
       - Only affecting 5.1

    modified:
      CMakeLists.txt
=== modified file 'CMakeLists.txt'
--- a/CMakeLists.txt	2011-05-24 08:33:20 +0000
+++ b/CMakeLists.txt	2011-05-24 11:41:58 +0000
@@ -128,6 +128,14 @@ IF(MSVC)
     # generate map files, set stack size (see bug#20815)
     SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MAP /MAPINFO:EXPORTS")
     SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:1048576")
+    IF(NOT MCP_BUG11765145)
+      # Fails to link with error message about missing .map file, turn
+      # off incremental linking to workaround problem 
+      IF(CMAKE_GENERATOR MATCHES "Visual Studio 10")
+        MESSAGE(STATUS "Turning off incremental linking for VS 2010")
+        SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /INCREMENTAL:NO")
+      ENDIF()
+    ENDIF()
 
     # remove support for Exception handling
     STRING(REPLACE "/GX"   "" CMAKE_CXX_FLAGS            ${CMAKE_CXX_FLAGS})

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20110524114158-63guflrpagmkuzzh.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4409) Bug#58076Magnus Blåudd24 May