From: Steinar H. Gunderson Date: Fri, 19 Apr 2013 21:44:23 +0000 (+0200) Subject: Compile and link with -pthread, not -lpthread. X-Git-Tag: 1.0.0~62 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=d1c19e7ac80ca27681ba67a121ac8a4a7441dc83;ds=sidebyside Compile and link with -pthread, not -lpthread. --- 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