Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b411942

Browse files
author
Matthieu Longo
committedJul 27, 2017
[solaris][sunpro] -D_REENTRANT is not defined even if we specify -pthread
1 parent 4227f19 commit b411942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎proton-c/CMakeLists.txt

+2-2
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)
Please sign in to comment.