Author: astitcher Date: Thu Nov 3 14:32:09 2011 New Revision: 1197147 URL: http://svn.apache.org/viewvc?rev=1197147&view=rev Log: QPID-3464: Build Improvements (CMake) [inspired by Jan-Marek Glogowski] - Turn off optimisations based on strict aliasing analysis for cluster code as we seem to be violating the strict aliasing rules there
Modified: qpid/trunk/qpid/cpp/src/cluster.cmake Modified: qpid/trunk/qpid/cpp/src/cluster.cmake URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/cluster.cmake?rev=1197147&r1=1197146&r2=1197147&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/src/cluster.cmake (original) +++ qpid/trunk/qpid/cpp/src/cluster.cmake Thu Nov 3 14:32:09 2011 @@ -149,7 +149,9 @@ if (BUILD_CLUSTER) target_link_libraries (cluster_shared ${LIBCPG} ${CMAN_LIB} qpidbroker qpidclient ${Boost_FILESYSTEM_LIBRARY}) if (CMAKE_COMPILER_IS_GNUCXX) - set_target_properties(cluster PROPERTIES + # Turn off optimisation based on strict-aliasing because we get warnings about violations + set_target_properties(cluster cluster_shared PROPERTIES + COMPILE_FLAGS "-fno-strict-aliasing" LINK_FLAGS "-Wl,--no-undefined -pthread") endif (CMAKE_COMPILER_IS_GNUCXX) --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscr...@qpid.apache.org