]> git.sesse.net Git - cubemap/commitdiff
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 1232ae1fae9b7786b0c0d7be639417d00a92ccb7..36fb4f88e1bf6ae9608c64afcbe880fc03837b82 100644 (file)
--- 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