qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [04/13] qpid-proton git commit: PROTON-1392: properly export swig-generated API on SunStudio
Date Tue, 07 Feb 2017 20:52:14 GMT
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/go1
Commit: 2f4ccd56941fe5cd7c30c4696dbc60d2e598b13f
Parents: 05451b2
Author: Adel Boutros <Adelboutros@live.com>
Authored: Wed Jan 18 13:41:10 2017 -0500
Committer: Ken Giusti <kgiusti@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


Mime
View raw message