mirror of
https://github.com/wg/wrk
synced 2025-01-08 23:32:54 +08:00
add thread-related CFLAGS needed on some platforms
This commit is contained in:
parent
a1a46c4e0d
commit
43d3193914
5
Makefile
5
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user