You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2017/01/30 19:02:18 UTC

qpid-proton git commit: PROTON-1392: properly export swig-generated API on SunStudio

Repository: qpid-proton
Updated Branches:
  refs/heads/master 05451b272 -> 2f4ccd569


PROTON-1392: properly export swig-generated API on SunStudio

This closes #94


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

Branch: refs/heads/master
Commit: 2f4ccd56941fe5cd7c30c4696dbc60d2e598b13f
Parents: 05451b2
Author: Adel Boutros <Ad...@live.com>
Authored: Wed Jan 18 13:41:10 2017 -0500
Committer: Ken Giusti <kg...@apache.org>
Committed: Mon Jan 30 14:00:39 2017 -0500

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


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2f4ccd56/proton-c/bindings/python/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/CMakeLists.txt b/proton-c/bindings/python/CMakeLists.txt
index fe732d9..b112ec9 100644
--- a/proton-c/bindings/python/CMakeLists.txt
+++ b/proton-c/bindings/python/CMakeLists.txt
@@ -29,6 +29,12 @@ set_source_files_properties(cproton.i PROPERTIES CPLUSPLUS NO)
 # Suppress warnings in swig generated code.
 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
 
+# Set Compiler extra flags for Solaris when using SunStudio
+if (CMAKE_C_COMPILER_ID STREQUAL "SunPro")
+    set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSWIGEXPORT=__global")
+endif ()
+
+
 list(APPEND SWIG_MODULE_cproton_EXTRA_DEPS
     ${CMAKE_SOURCE_DIR}/proton-c/include/proton/cproton.i
     ${PROTON_HEADERS}


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