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:50 UTC
[30/50] [abbrv] qpid-proton git commit: PROTON-1316 Set visibility of
exportable symbols on Solaris
PROTON-1316 Set visibility of exportable symbols on Solaris
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/dae0c55a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/dae0c55a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/dae0c55a
Branch: refs/heads/go1
Commit: dae0c55acffc77f23c548f4d23b6dc166c388ac1
Parents: 68f64e0
Author: aboutros <ad...@murex.com>
Authored: Fri Oct 7 09:47:38 2016 +0200
Committer: Alan Conway <ac...@redhat.com>
Committed: Thu Oct 20 08:13:49 2016 -0400
----------------------------------------------------------------------
proton-c/CMakeLists.txt | 5 +++++
proton-c/bindings/cpp/include/proton/internal/export.hpp | 5 +++++
2 files changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/dae0c55a/proton-c/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/proton-c/CMakeLists.txt b/proton-c/CMakeLists.txt
index c634113..0b4f7e1 100644
--- a/proton-c/CMakeLists.txt
+++ b/proton-c/CMakeLists.txt
@@ -250,6 +250,11 @@ if (CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
endif (ENABLE_HIDE_UNEXPORTED_SYMBOLS)
+elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "SunPro")
+ if (ENABLE_HIDE_UNEXPORTED_SYMBOLS)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -xldscope=hidden")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -xldscope=hidden")
+ endif (ENABLE_HIDE_UNEXPORTED_SYMBOLS)
endif (CMAKE_COMPILER_IS_GNUCC)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/dae0c55a/proton-c/bindings/cpp/include/proton/internal/export.hpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/include/proton/internal/export.hpp b/proton-c/bindings/cpp/include/proton/internal/export.hpp
index c38ed95..4c95956 100644
--- a/proton-c/bindings/cpp/include/proton/internal/export.hpp
+++ b/proton-c/bindings/cpp/include/proton/internal/export.hpp
@@ -33,6 +33,11 @@
# define PN_CPP_IMPORT __declspec(dllimport)
# define PN_CPP_CLASS_EXPORT
# define PN_CPP_CLASS_IMPORT
+#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+# define PN_CPP_EXPORT __global
+# define PN_CPP_IMPORT
+# define PN_CPP_CLASS_EXPORT __global
+# define PN_CPP_CLASS_IMPORT
#else
//
// Non-Windows (Linux, etc.) definitions:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org