Skip to content

Commit

Permalink
[solaris][sunpro] -D_REENTRANT is not defined even if we specify -pth…
Browse files Browse the repository at this point in the history
…read
  • Loading branch information
Matthieu Longo committed Apr 12, 2018
1 parent 44be647 commit 61e55b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,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 61e55b7

Please sign in to comment.