defs.mk: Add support for systemd sd_notify()

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-06-27 12:12:57 +00:00
commit 1a48ba4c66

View file

@ -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_