You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/11/02 02:53:49 UTC

[29/50] [abbrv] qpid-proton git commit: PROTON-1315: Force compilation in multi-threading mode for Solaris SunStudio

PROTON-1315: Force compilation in multi-threading mode for Solaris SunStudio

Signed-off-by: aboutros <ad...@murex.com>


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/68f64e0f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/68f64e0f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/68f64e0f

Branch: refs/heads/go1
Commit: 68f64e0fbcec30b05324d46550591b0a5846f280
Parents: 3dd7be3
Author: aboutros <ad...@murex.com>
Authored: Wed Oct 5 10:52:18 2016 +0200
Committer: Alan Conway <ac...@redhat.com>
Committed: Wed Oct 19 17:14:47 2016 -0400

----------------------------------------------------------------------
 proton-c/CMakeLists.txt | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/68f64e0f/proton-c/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/proton-c/CMakeLists.txt b/proton-c/CMakeLists.txt
index f2a5b76..c634113 100644
--- a/proton-c/CMakeLists.txt
+++ b/proton-c/CMakeLists.txt
@@ -109,6 +109,15 @@ elseif (SASL_IMPL STREQUAL none)
   set(pn_sasl_impl src/sasl/sasl.c src/sasl/none_sasl.c)
 endif ()
 
+# Set Compiler extra flags for Solaris when using SunStudio
+IF( ${CMAKE_CXX_COMPILER_ID} STREQUAL "SunPro" )
+    SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt" )
+ENDIF()
+
+IF( ${CMAKE_C_COMPILER_ID} STREQUAL "SunPro" )
+    SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt" )
+ENDIF()
+
 # Link in openssl if present
 if (SSL_IMPL STREQUAL openssl)
   set (pn_ssl_impl src/ssl/openssl.c)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org