From 7b5d28e4b9a12625b4386a442bab681e78a1c3db Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 12 Aug 2011 02:51:16 +0200 Subject: [PATCH] build: use -pthreads on sunos, -pthread everywhere else --- config-unix.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config-unix.mk b/config-unix.mk index 53d566af..aa60253d 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -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