Skip to content

Commit 7e7bc22

Browse files
committed
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 <[email protected]>
1 parent 422c088 commit 7e7bc22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ IMAGE:=$(REGISTRY)/node-problem-detector:$(TAG)
5353
# support needs libsystemd-dev or libsystemd-journal-dev.
5454
ENABLE_JOURNALD?=1
5555

56+
ifeq ($(shell uname -s 2>/dev/null), Darwin)
57+
ENABLE_JOURNALD=0
58+
endif
59+
5660
# TODO(random-liu): Support different architectures.
5761
# The debian-base:v1.0.0 image built from kubernetes repository is based on
5862
# Debian Stretch. It includes systemd 232 with support for both +XZ and +LZ4

0 commit comments

Comments
 (0)