Skip to content

Commit fc4f167

Browse files
authored
Merge pull request #529 from stmcginnis/macos
Allow building on macOS
2 parents f3968f1 + 487915e commit fc4f167

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

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

56+
ifeq ($(go env GOHOSTOS), darwin)
57+
ENABLE_JOURNALD=0
58+
else ifeq ($(go env GOHOSTOS), windows)
59+
ENABLE_JOURNALD=0
60+
endif
61+
5662
# TODO(random-liu): Support different architectures.
5763
# The debian-base:v1.0.0 image built from kubernetes repository is based on
5864
# Debian Stretch. It includes systemd 232 with support for both +XZ and +LZ4

0 commit comments

Comments
 (0)