$NetBSD$

SunOS needs libresolv here.
--- adm/cmake/TKernel/CMakeLists.txt.orig	2014-11-30 05:46:16.000000000 +0000
+++ adm/cmake/TKernel/CMakeLists.txt
@@ -41,6 +41,9 @@ else(WIN32)
 			set(TOOLKIT_LIBS ${TOOLKIT_LIBS} rt)
 		endif(NOT CLOCK_GETTIME_IN_LIBC)
 	endif(NOT APPLE)
+	if(CMAKE_SYSTEM_NAME STREQUAL SunOS)
+		set(TOOLKIT_LIBS ${TOOLKIT_LIBS} resolv)
+	endif(CMAKE_SYSTEM_NAME)
 endif(WIN32)
 
 # Adde-DHAVE_TBB in TKernel in order to benefit from Standard_MMgrTBBalloc
