From d1c19e7ac80ca27681ba67a121ac8a4a7441dc83 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 19 Apr 2013 23:44:23 +0200 Subject: [PATCH] Compile and link with -pthread, not -lpthread. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1232ae1..36fb4f8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ CC=gcc CXX=g++ PROTOC=protoc -CXXFLAGS=-Wall -O2 -g -LDLIBS=-lpthread -lprotobuf +CXXFLAGS=-Wall -O2 -g -pthread +LDLIBS=-lprotobuf +LDFLAGS=-pthread OBJS=main.o client.o server.o stream.o serverpool.o mutexlock.o input.o httpinput.o udpinput.o parse.o config.o markpool.o acceptor.o stats.o accesslog.o thread.o util.o log.o state.pb.o -- 2.39.2