Skip to content

Commit

Permalink
Remove checks for (long)deprecated libsystemd-journal in favor of lib…
Browse files Browse the repository at this point in the history
  • Loading branch information
rahilarious authored and haircommander committed Jan 26, 2024
1 parent f2be46f commit 3e103d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ override CFLAGS += $(shell $(PKG_CONFIG) --cflags glib-2.0) -DVERSION=\"$(VERSIO
# "pkg-config --exists" will error if the package doesn't exist. Make can only compare
# output of commands, so the echo commands are to allow pkg-config to error out, make to catch it,
# and allow the compilation to complete.
ifeq ($(shell $(PKG_CONFIG) --exists libsystemd-journal && echo "0"), 0)
override LIBS += $(shell $(PKG_CONFIG) --libs libsystemd-journal)
override CFLAGS += $(shell $(PKG_CONFIG) --cflags libsystemd-journal) -D USE_JOURNALD=1
else ifeq ($(shell $(PKG_CONFIG) --exists libsystemd && echo "0"), 0)
ifeq ($(shell $(PKG_CONFIG) --exists libsystemd && echo "0"), 0)
override LIBS += $(shell $(PKG_CONFIG) --libs libsystemd)
override CFLAGS += $(shell $(PKG_CONFIG) --cflags libsystemd) -D USE_JOURNALD=1
endif
Expand Down
5 changes: 1 addition & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ else
libdl = cc.find_library('dl')
endif

sd_journal = dependency('libsystemd-journal', required : false)
if not sd_journal.found()
sd_journal = dependency('libsystemd', required : false)
endif
sd_journal = dependency('libsystemd', required : false)
if sd_journal.found()
add_project_arguments('-DUSE_JOURNALD=1', language : 'c')
endif
Expand Down

0 comments on commit 3e103d6

Please sign in to comment.