Skip to content

Commit

Permalink
[Solaris][sunCC] -D_REENTRANT is not defined even if we specify -pthread
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Longo committed Jul 27, 2017
1 parent 4227f19 commit b4e376a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proton-c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ endif ()

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

if (CMAKE_C_COMPILER_ID STREQUAL "SunPro")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mt -D_REENTRANT")
endif()

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

0 comments on commit b4e376a

Please sign in to comment.