From 717e0e5635a03ab2b1366e3ff2015ad223855b81 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Fri, 20 Sep 2013 10:50:19 -0700 Subject: [PATCH] build: use -pthread on sunos When building on sunos with autoconf make sure to specify -pthread otherwise there will be race conditions with errno and etc --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 7d3dfa054..a06596fad 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,6 +31,10 @@ libuv_la_SOURCES = src/fs-poll.c \ src/uv-common.h \ src/version.c +if SUNOS +libuv_la_CFLAGS += -pthread +endif + if WINNT include_HEADERS += include/uv-win.h include/tree.h