File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,19 @@ elseif (SASL_IMPL STREQUAL none)
115115endif ()
116116
117117# Set Compiler extra flags for Solaris when using SunStudio
118- if (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro" )
119- set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt" )
118+ if (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro" )
119+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt" )
120120endif ()
121121
122- if (CMAKE_C_COMPILER_ID STREQUAL "SunPro" )
122+ if (CMAKE_C_COMPILER_ID STREQUAL "SunPro" )
123123 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt" )
124124endif ()
125125
126+ # Set linker's extra flags for Solaris (used by SunStudio and GCC without discrimination)
127+ if (CMAKE_HOST_SOLARIS)
128+ set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lsocket" )
129+ endif (CMAKE_HOST_SOLARIS)
130+
126131# Link in openssl if present
127132if (SSL_IMPL STREQUAL openssl)
128133 set (pn_ssl_impl src/ssl/openssl.c)
You can’t perform that action at this time.
0 commit comments