diff options
author | Andrew Stitcher <astitcher@apache.org> | 2011-11-03 14:32:09 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2011-11-03 14:32:09 +0000 |
commit | 048daa1b473e4d05318d4cc06c7ac2ba3bd762eb (patch) | |
tree | 3aed9356f1e4364789e1162dd8bb3dd0e44aee8e | |
parent | 063f1124a86299ac774b11cbcfe455fbe9ec0d55 (diff) | |
download | qpid-python-048daa1b473e4d05318d4cc06c7ac2ba3bd762eb.tar.gz |
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
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1197147 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/cluster.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/cluster.cmake b/qpid/cpp/src/cluster.cmake index d743942fff..48227c1a02 100644 --- a/qpid/cpp/src/cluster.cmake +++ b/qpid/cpp/src/cluster.cmake @@ -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) |