mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Add support for systemd sd_notify()
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
85c988b4da
commit
1a48ba4c66
1 changed files with 7 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ USE_PROJECT_LIB ?= true
|
|||
USE_YTOOLS ?= true
|
||||
USE_EXCEPTIONS_IN_C ?= true
|
||||
REENTRANT ?= true
|
||||
USE_SYSTEMD ?= true
|
||||
|
||||
export REENTRANT
|
||||
|
||||
|
|
@ -703,6 +704,12 @@ ifneq ($(filter ytools,$(PREREQ_BUILD)),)
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SYSTEMD),true)
|
||||
BUILD_CFLAGS += -D_USE_SYSTEMD_
|
||||
BUILD_CPPFLAGS += -D_USE_SYSTEMD_
|
||||
BUILD_LDFLAGS += -lsystemd-daemon
|
||||
endif
|
||||
|
||||
ifeq ($(USE_TIMER),true)
|
||||
BUILD_CFLAGS+= -D_USE_TIMER_
|
||||
BUILD_CPPFLAGS += -D_USE_TIMER_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue