1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 23:32:54 +08:00

define MACOSX_DEPLOYMENT_TARGET on macos

This commit is contained in:
Will 2019-04-17 20:02:40 +09:00
parent 7594a95186
commit 0bbe32c2f8

View File

@ -8,6 +8,7 @@ ifeq ($(TARGET), sunos)
LIBS += -lsocket LIBS += -lsocket
else ifeq ($(TARGET), darwin) else ifeq ($(TARGET), darwin)
LDFLAGS += -pagezero_size 10000 -image_base 100000000 LDFLAGS += -pagezero_size 10000 -image_base 100000000
export MACOSX_DEPLOYMENT_TARGET = $(shell sw_vers -productVersion)
else ifeq ($(TARGET), linux) else ifeq ($(TARGET), linux)
CFLAGS += -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE CFLAGS += -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE
LIBS += -ldl LIBS += -ldl