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 <info@bnoordhuis.nl>
This commit is contained in:
parent
59f875d638
commit
ccd9745a68
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user