$OpenBSD: patch-cmake_modules_FindRedland_cmake,v 1.3 2013/11/05 13:29:38 zhuk Exp $
Add missing pthread lib.
--- cmake/modules/FindRedland.cmake.orig	Tue Nov  5 17:13:30 2013
+++ cmake/modules/FindRedland.cmake	Tue Nov  5 17:13:02 2013
@@ -108,7 +108,7 @@ if(NOT WIN32)
     try_run(_TEST_EXITCODE _TEST_COMPILED
       "${CMAKE_CURRENT_BINARY_DIR}"
       "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/CheckLibraryLoads.c"
-      CMAKE_FLAGS "-DLINK_LIBRARIES=${CMAKE_DL_LIBS}"
+      CMAKE_FLAGS "-DLINK_LIBRARIES=${CMAKE_DL_LIBS};pthread"
       RUN_OUTPUT_VARIABLE _OUTPUT
       ARGS ${_REDLAND_STORAGE_LIBS}
     )
