Fix compilation on NetBSD

This commit is contained in:
Cacodemon345 2020-06-05 01:08:20 +06:00 committed by alexey.lysiuk
parent 903ca15af2
commit 9c7f5e941e
1 changed files with 4 additions and 0 deletions

View File

@ -370,6 +370,10 @@ if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ljemalloc")
endif()
if( NOT NO_STRIP )
set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -s" )