build: use -pthreads on sunos, -pthread everywhere else
This commit is contained in:
parent
4c63f554a6
commit
7b5d28e4b9
@ -74,8 +74,14 @@ endif
|
||||
|
||||
# Need _GNU_SOURCE for strdup?
|
||||
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE
|
||||
RUNNER_LINKFLAGS=$(LINKFLAGS)
|
||||
|
||||
ifeq (SunOS,$(uname_S))
|
||||
RUNNER_LINKFLAGS += -pthreads
|
||||
else
|
||||
RUNNER_LINKFLAGS += -pthread
|
||||
endif
|
||||
|
||||
RUNNER_LINKFLAGS=$(LINKFLAGS) -pthreads
|
||||
RUNNER_LIBS=
|
||||
RUNNER_SRC=test/runner-unix.c
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user