defs.mk: Don't link against systemd without SDK

Only link against systemd if /usr/include/systemd/sd-daemon.h exists.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-06-29 15:32:53 +00:00
commit d5b41e91b0
2 changed files with 17 additions and 3 deletions

View file

@ -114,7 +114,9 @@ USE_PROJECT_LIB ?= true
USE_YTOOLS ?= true
USE_EXCEPTIONS_IN_C ?= true
REENTRANT ?= true
ifneq ($(wildcard /usr/include/systemd/sd-daemon.h),)
USE_SYSTEMD ?= true
endif
export REENTRANT