Compile and link with -pthread, not -lpthread.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 19 Apr 2013 21:44:23 +0000 (23:44 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 19 Apr 2013 21:44:23 +0000 (23:44 +0200)
Makefile

index 1232ae1..36fb4f8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
 CC=gcc
 CXX=g++
 PROTOC=protoc
 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
 
 
 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