|
|
4aa15d |
From c0d934651f0fb01687035c8750f0591ea8b5d0ee Mon Sep 17 00:00:00 2001
|
|
|
4aa15d |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
4aa15d |
Date: Mon, 23 May 2016 14:28:40 +0200
|
|
|
4aa15d |
Subject: [PATCH] build: update pkg modules for systemd
|
|
|
4aa15d |
|
|
|
4aa15d |
systemd-journal was dropped in systemd-230
|
|
|
4aa15d |
|
|
|
4aa15d |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
4aa15d |
---
|
|
|
4aa15d |
src/CMakeLists.txt | 14 +++++++-------
|
|
|
4aa15d |
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
4aa15d |
|
|
|
4aa15d |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
|
4aa15d |
index 1d31602..36c9ce5 100644
|
|
|
4aa15d |
--- a/src/CMakeLists.txt
|
|
|
4aa15d |
+++ b/src/CMakeLists.txt
|
|
|
4aa15d |
@@ -4,14 +4,14 @@ include_directories(${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})
|
|
|
4aa15d |
include_directories(${PC_LIBREPORT_INCLUDE_DIRS})
|
|
|
4aa15d |
include_directories(${PC_ABRT_INCLUDE_DIRS})
|
|
|
4aa15d |
|
|
|
4aa15d |
-pkg_check_modules(PC_JOURNALD libsystemd-journal)
|
|
|
4aa15d |
+pkg_check_modules(PC_SYSTEMD libsystemd)
|
|
|
4aa15d |
|
|
|
4aa15d |
-if (PC_JOURNALD_FOUND)
|
|
|
4aa15d |
- include_directories(${PC_JOURNALD_INCLUDE_DIRS})
|
|
|
4aa15d |
+if (PC_SYSTEMD_FOUND)
|
|
|
4aa15d |
+ include_directories(${PC_SYSTEMD_INCLUDE_DIRS})
|
|
|
4aa15d |
add_definitions(-DHAVE_SYSTEMD=1)
|
|
|
4aa15d |
else()
|
|
|
4aa15d |
add_definitions(-DHAVE_SYSTEMD=0)
|
|
|
4aa15d |
-endif (PC_JOURNALD_FOUND)
|
|
|
4aa15d |
+endif (PC_SYSTEMD_FOUND)
|
|
|
4aa15d |
|
|
|
4aa15d |
set(AbrtChecker_SRCS configuration.c abrt-checker.c
|
|
|
4aa15d |
jthrowable_circular_buf.c jthread_map.c)
|
|
|
4aa15d |
@@ -27,8 +27,8 @@ set_target_properties(
|
|
|
4aa15d |
target_link_libraries(AbrtChecker ${PC_LIBREPORT_LIBRARIES})
|
|
|
4aa15d |
target_link_libraries(AbrtChecker ${PC_ABRT_LIBRARIES})
|
|
|
4aa15d |
|
|
|
4aa15d |
-if (PC_JOURNALD_FOUND)
|
|
|
4aa15d |
- target_link_libraries(AbrtChecker ${PC_JOURNALD_LIBRARIES})
|
|
|
4aa15d |
-endif (PC_JOURNALD_FOUND)
|
|
|
4aa15d |
+if (PC_SYSTEMD_FOUND)
|
|
|
4aa15d |
+ target_link_libraries(AbrtChecker ${PC_SYSTEMD_LIBRARIES})
|
|
|
4aa15d |
+endif (PC_SYSTEMD_FOUND)
|
|
|
4aa15d |
|
|
|
4aa15d |
install(TARGETS AbrtChecker DESTINATION ${JNIAGENTLIB_INSTALL_DIR})
|
|
|
4aa15d |
--
|
|
|
4aa15d |
2.21.0
|
|
|
4aa15d |
|