Skip to content

Commit 3cd807e

Browse files
committed
Find and link libsystemd
1 parent 0fc53f6 commit 3cd807e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CMake/Findsystemd.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
find_package(PkgConfig)
2+
pkg_check_modules(SYSTEMD libsystemd)
3+
4+
include(FindPackageHandleStandardArgs)
5+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
6+
systemd
7+
DEFAULT_MSG
8+
SYSTEMD_LIBRARIES
9+
SYSTEMD_INCLUDEDIR)
10+

CMake/HPHPFindLibs.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ if (APPLE)
279279
endif()
280280

281281
if (LINUX)
282+
find_package(systemd REQUIRED)
282283
find_package(Bpf REQUIRED)
283284
find_package(LibUnwind REQUIRED)
284285
find_package(Bpf REQUIRED)
@@ -349,7 +350,7 @@ macro(hphp_link target)
349350
target_link_libraries(${target} ${VISIBILITY} glog)
350351

351352
if (LINUX)
352-
target_link_libraries(${target} ${VISIBILITY} ${LIBUNWIND_LIBRARIES} ${BPF_LIBRARIES})
353+
target_link_libraries(${target} ${VISIBILITY} ${LIBUNWIND_LIBRARIES} ${BPF_LIBRARIES} ${SYSTEMD_LIBRARIES})
353354
endif()
354355

355356
if (LIBINOTIFY_LIBRARY)

ci/ubuntu-24.04-noble/debian/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Build-Depends:
5858
libsodium-dev,
5959
libsqlite3-dev,
6060
libssl-dev,
61+
libsystemd-dev,
6162
libtool,
6263
libxml2-dev,
6364
libxslt1-dev,

0 commit comments

Comments
 (0)