mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-19 12:16:26 +00:00
Allow building on macOS
Journald is not available on mac. To allow building the rest of the project while working on a mac, use the same flag as the Windows build to skip inclusion of journald. Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
@@ -53,6 +53,10 @@ IMAGE:=$(REGISTRY)/node-problem-detector:$(TAG)
|
||||
# support needs libsystemd-dev or libsystemd-journal-dev.
|
||||
ENABLE_JOURNALD?=1
|
||||
|
||||
ifeq ($(shell uname -s 2>/dev/null), Darwin)
|
||||
ENABLE_JOURNALD=0
|
||||
endif
|
||||
|
||||
# TODO(random-liu): Support different architectures.
|
||||
# The debian-base:v1.0.0 image built from kubernetes repository is based on
|
||||
# Debian Stretch. It includes systemd 232 with support for both +XZ and +LZ4
|
||||
|
||||
Reference in New Issue
Block a user