tools: Fix pthread flag for Makefile of trace-agent used by virtio-trace
[pandora-kernel.git] / tools / virtio / virtio-trace / Makefile
index ef3adfc..0d23816 100644 (file)
@@ -1,14 +1,13 @@
 CC = gcc
-CFLAGS = -O2 -Wall
-LFLAG = -lpthread
+CFLAGS = -O2 -Wall -pthread
 
 all: trace-agent
 
 .c.o:
-       $(CC) $(CFLAGS) $(LFLAG) -c $^ -o $@
+       $(CC) $(CFLAGS) -c $^ -o $@
 
 trace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
-       $(CC) $(CFLAGS) $(LFLAG) -o $@ $^
+       $(CC) $(CFLAGS) -o $@ $^
 
 clean:
        rm -f *.o trace-agent