Commit adbb46f6 authored by Ryan Jackson's avatar Ryan Jackson

Oops: only link against librt on Linux

parent 73deb1e2
......@@ -57,6 +57,7 @@ SHAREDOBJS = log.o network.o trace.o utils.o
ifeq ($(SYSTEM),Linux)
PTHREADCFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_THREAD_SAFE -pthread
CFLAGS += -lrt
else
ifeq ($(WITH_LTHREADS),1)
PTHREADCFLAGS = -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads
......@@ -68,7 +69,7 @@ endif
endif
CLIENTFLAGS = $(CFLAGS)
CLIENTLIBS = -lz -lrt $(PTHREADLIBS)
CLIENTLIBS = -lz $(PTHREADLIBS)
CLIENTOBJS = client.o frisbee.o checksum.o disksize.o $(SHAREDOBJS)
SERVERFLAGS = $(CFLAGS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment