From 0bbe32c2f8cb5662615b0ad742ba540e845d2154 Mon Sep 17 00:00:00 2001 From: Will Date: Wed, 17 Apr 2019 20:02:40 +0900 Subject: [PATCH] define MACOSX_DEPLOYMENT_TARGET on macos --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d555f0a..98ededf 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ ifeq ($(TARGET), sunos) LIBS += -lsocket else ifeq ($(TARGET), darwin) LDFLAGS += -pagezero_size 10000 -image_base 100000000 + export MACOSX_DEPLOYMENT_TARGET = $(shell sw_vers -productVersion) else ifeq ($(TARGET), linux) CFLAGS += -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE LIBS += -ldl