From: magnus.blaudd Date: May 24 2011 12:34pm Subject: bzr push into mysql-5.1-telco-7.0 branch (magnus.blaudd:4408 to 4410) List-Archive: http://lists.mysql.com/commits/137988 Message-Id: <20110524123449.AA1C613402B@pilot> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 4410 magnus.blaudd@stripped 2011-05-24 [merge] Merge modified: CMakeLists.txt 4409 magnus.blaudd@stripped 2011-05-24 ndb - reduce make system magic by including the necessary by relative path instead of global include paths when accessing private internals modified: storage/ndb/src/mgmsrv/Config.hpp storage/ndb/tools/CMakeLists.txt storage/ndb/tools/Makefile.am storage/ndb/tools/ndb_config.cpp 4408 magnus.blaudd@stripped 2011-05-24 [merge] Merge added: storage/ndb/cmake/os/ storage/ndb/cmake/os/Windows.cmake storage/ndb/cmake/os/WindowsCache.cmake modified: CMakeLists.txt storage/ndb/ndb_configure.cmake === 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}) === modified file 'storage/ndb/src/mgmsrv/Config.hpp' --- a/storage/ndb/src/mgmsrv/Config.hpp 2011-02-01 23:27:25 +0000 +++ b/storage/ndb/src/mgmsrv/Config.hpp 2011-05-24 11:51:39 +0000 @@ -22,7 +22,7 @@ #include #include "ConfigInfo.hpp" #include -#include +#include "../mgmapi/mgmapi_configuration.hpp" /** === modified file 'storage/ndb/tools/CMakeLists.txt' --- a/storage/ndb/tools/CMakeLists.txt 2011-02-03 14:20:36 +0000 +++ b/storage/ndb/tools/CMakeLists.txt 2011-05-24 11:51:39 +0000 @@ -72,12 +72,6 @@ MYSQL_ADD_EXECUTABLE(ndb_config COMPONENT ClusterTools) TARGET_LINK_LIBRARIES(ndb_config ndbmgmclient ndbconf) -SET(options "-I${CMAKE_SOURCE_DIR}/storage/ndb/src/mgmapi") -SET(options "${options} -I${CMAKE_SOURCE_DIR}/storage/ndb/src/mgmsrv") -SET(options "${options} -I${CMAKE_SOURCE_DIR}/storage/ndb/include/mgmcommon") -SET_TARGET_PROPERTIES(ndb_config PROPERTIES - COMPILE_FLAGS "${options}") - # Build ndbinfo_sql and run it to create ndbinfo.sql ADD_EXECUTABLE(ndbinfo_sql ndbinfo_sql.cpp) TARGET_LINK_LIBRARIES(ndbinfo_sql ndbclient) === modified file 'storage/ndb/tools/Makefile.am' --- a/storage/ndb/tools/Makefile.am 2011-02-23 22:48:42 +0000 +++ b/storage/ndb/tools/Makefile.am 2011-05-24 11:51:39 +0000 @@ -60,10 +60,6 @@ ndb_config_SOURCES = ndb_config.cpp \ ../src/mgmsrv/ConfigInfo.cpp \ ../src/mgmsrv/InitConfigFileParser.cpp -ndb_config_CXXFLAGS = -I$(top_srcdir)/storage/ndb/src/mgmapi \ - -I$(top_srcdir)/storage/ndb/src/mgmsrv \ - -I$(top_srcdir)/storage/ndb/include/mgmcommon - ndb_restore_LDADD = $(top_builddir)/storage/ndb/src/common/util/libndbazio.la \ $(LDADD) === modified file 'storage/ndb/tools/ndb_config.cpp' --- a/storage/ndb/tools/ndb_config.cpp 2011-02-01 23:27:25 +0000 +++ b/storage/ndb/tools/ndb_config.cpp 2011-05-24 11:51:39 +0000 @@ -28,8 +28,8 @@ #include #include -#include -#include +#include "../src/mgmapi/mgmapi_configuration.hpp" +#include "../src/mgmsrv/ConfigInfo.hpp" #include #include @@ -552,7 +552,7 @@ noconnect: return conf; } -#include +#include "../src/mgmsrv/Config.hpp" #include extern EventLogger *g_eventLogger; No bundle (reason: useless for push emails).