$OpenBSD: patch-lib_base_CMakeLists_txt,v 1.5 2015/11/16 20:29:55 sthen Exp $
--- lib/base/CMakeLists.txt.orig	Mon Nov 16 09:57:03 2015
+++ lib/base/CMakeLists.txt	Mon Nov 16 17:00:02 2015
@@ -49,8 +49,8 @@ add_library(base SHARED ${base_SOURCES})
 
 target_link_libraries(base ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${YAJL_LIBRARIES} mmatch socketpair)
 
-if(HAVE_LIBEXECINFO)
-    target_link_libraries(base execinfo)
+if(Backtrace_FOUND)
+  target_link_libraries(base ${Backtrace_LIBRARIES})
 endif()
 
 include_directories(${icinga2_SOURCE_DIR}/third-party/execvpe)
