--- Makefile.orig 2018-06-22 13:58:22.000000000 +0000 +++ Makefile 2018-06-24 02:00:00.000000000 +0000 @@ -473,8 +473,10 @@ ifneq ($(USE_LIBCRYPT),) OPTIONS_CFLAGS += -DCONFIG_HAP_CRYPT BUILD_OPTIONS += $(call ignore_implicit,USE_LIBCRYPT) +ifneq ($(shell uname -s),Darwin) OPTIONS_LDFLAGS += -lcrypt endif +endif ifneq ($(USE_CRYPT_H),) OPTIONS_CFLAGS += -DNEED_CRYPT_H