1
0
mirror of https://github.com/wg/wrk synced 2026-05-18 11:39:50 +08:00

add thread-related CFLAGS needed on some platforms

This commit is contained in:
Will
2013-03-03 18:24:41 +09:00
Unverified
parent a1a46c4e0d
commit 43d3193914
+3 -2
View File
@@ -1,10 +1,11 @@
CFLAGS := -std=c99 -Wall -O2
CFLAGS := -std=c99 -Wall -O2 -D_REENTRANT
LIBS := -lpthread -lm
TARGET := $(shell uname -s | tr [A-Z] [a-z] 2>/dev/null || echo unknown)
ifeq ($(TARGET), sunos)
LIBS += -lsocket
CFLAGS += -D_PTHREADS
LIBS += -lsocket
endif
SRC := wrk.c aprintf.c stats.c units.c ae.c zmalloc.c http_parser.c tinymt64.c