|
@ -38,17 +38,16 @@ set(CMAKE_C_FLAGS_RELEASE "-g -O3 -DNDEBUG $ENV{CFLAGS}") |
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-g -O3 -DNDEBUG $ENV{CXXFLAGS}") |
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-g -O3 -DNDEBUG $ENV{CXXFLAGS}") |
|
|
|
|
|
|
|
|
if(${node_platform} MATCHES sunos) |
|
|
if(${node_platform} MATCHES sunos) |
|
|
# shouldn't this be added to CMAE_C_FLAGS or something? |
|
|
|
|
|
add_definitions(-threads) |
|
|
add_definitions(-threads) |
|
|
elseif(NOT ${node_platform} MATCHES cygwin*) |
|
|
elseif(NOT ${node_platform} MATCHES cygwin*) |
|
|
# shouldn't this be added to CMAE_C_FLAGS or something? |
|
|
|
|
|
add_definitions(-pthread) |
|
|
add_definitions(-pthread) |
|
|
set(CMAKE_C_FLAGS -rdynamic) |
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -rdynamic") |
|
|
set(CMAKE_EXE_LINKER_FLAGS -pthread) |
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic") |
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
if(${node_platform} MATCHES darwin) |
|
|
if(${node_platform} MATCHES darwin) |
|
|
set(CMAKE_EXE_LINKER_FLAGS "-framework Carbon") |
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Carbon") |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
check_function_exists(fdatasync HAVE_FDATASYNC) |
|
|
check_function_exists(fdatasync HAVE_FDATASYNC) |
|
|