From ccd9745a681f625a8fc41f27da086ba42eac5691 Mon Sep 17 00:00:00 2001 From: Logan Rosen Date: Wed, 17 Dec 2014 21:33:03 -0500 Subject: [PATCH] build: link against -pthread Please see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773341 for more information. Libuv uses some of pthread's symbols, but it doesn't link against it, which causes underlinking issues, especially in Ubuntu where we use ld --as-needed. The issue also shows up as warnings in Debian's build logs. PR-URL: https://github.com/libuv/libuv/pull/73 Reviewed-By: Ben Noordhuis --- config-unix.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-unix.mk b/config-unix.mk index 37c4a72f..c538555e 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -22,7 +22,7 @@ E= CSTDFLAG=--std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter CFLAGS += -g CPPFLAGS += -I$(SRCDIR)/src -LDFLAGS=-lm +LDFLAGS=-lm -pthread CPPFLAGS += -D_LARGEFILE_SOURCE CPPFLAGS += -D_FILE_OFFSET_BITS=64