diff options
Diffstat (limited to 'testing/rmilter/system_hiredis.patch')
-rw-r--r-- | testing/rmilter/system_hiredis.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/rmilter/system_hiredis.patch b/testing/rmilter/system_hiredis.patch new file mode 100644 index 0000000000..3dfdf54519 --- /dev/null +++ b/testing/rmilter/system_hiredis.patch @@ -0,0 +1,28 @@ +--- old/CMakeLists.txt ++++ new/CMakeLists.txt +@@ -245,6 +245,8 @@ + ROOT ${PCRE_ROOT_DIR} MODULES pcre libpcre pcre3 libpcre3) + ProcessPackage(LIBMILTER LIBRARY milter INCLUDE mfapi.h INCLUDE_SUFFIXES include/libmilter + LIB_SUFFIXES lib/libmilter ROOT ${LIBMILTER_ROOT_DIR} MODULES libmilter) ++ProcessPackage(LIBHIREDIS LIBRARY hiredis INCLUDE hiredis.h INCLUDE_SUFFIXES include/hiredis ++ LIB_SUFFIXES lib/libhiredis ROOT ${LIBHIREDIS_ROOT_DIR} MODULES libhiredis) + + IF(ENABLE_DKIM MATCHES "ON") + SET(WITH_DKIM 1) +@@ -363,8 +365,6 @@ + CHECK_SYMBOL_EXISTS(MAP_NOCORE sys/mman.h HAVE_MMAP_NOCORE) + + ################################ SOURCES SECTION ########################### +-ADD_SUBDIRECTORY(hiredis) +-INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/hiredis") + + SET(RMILTERSRC + compat/blake2b-ref.c +@@ -394,7 +394,6 @@ + ADD_EXECUTABLE(rmilter ${RMILTERSRC}) + SET_TARGET_PROPERTIES(rmilter PROPERTIES LINKER_LANGUAGE C) + TARGET_LINK_LIBRARIES(rmilter ${RMILTER_REQUIRED_LIBRARIES}) +-TARGET_LINK_LIBRARIES(rmilter rmilter-hiredis) + + ##################### INSTALLATION ########################################## + |