Skip to content

Commit b4e376a

Browse files
author
Matthieu Longo
committed
[Solaris][sunCC] -D_REENTRANT is not defined even if we specify -pthread
1 parent 4227f19 commit b4e376a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proton-c/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ endif ()
116116

117117
# Set Compiler extra flags for Solaris when using SunStudio
118118
if (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
119-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt")
119+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mt -D_REENTRANT")
120120
endif()
121121

122122
if (CMAKE_C_COMPILER_ID STREQUAL "SunPro")
123-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt")
123+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt -D_REENTRANT")
124124
endif()
125125

126126
# Set linker's extra flags for Solaris (used by SunStudio and GCC without discrimination)

0 commit comments

Comments
 (0)