Commit 738b1f89 authored by Jordan Sissel's avatar Jordan Sissel

Add librt on linux

parent 6730a709
......@@ -7,6 +7,7 @@ CFLAGS+=-Wno-unused-function
LDFLAGS+=-pthread
LDFLAGS+=-Lbuild/lib -Wl,-rpath,'$$ORIGIN/../lib'
LIBS=-lzmq
#-lmsgpack
#-ljansson
......@@ -15,6 +16,11 @@ PREFIX?=/opt/lumberjack
default: build/bin/lumberjack
include Makefile.ext
ifeq ($(UNAME),Linux)
# clock_gettime is in librt on linux.
LIBS+=-lrt
endif
clean:
-@rm -fr lumberjack unixsock *.o build
-@make -C vendor/msgpack/ clean
......@@ -48,7 +54,6 @@ build/bin/lumberjack: lumberjack.o backoff.o harvester.o emitter.o str.o proto.o
@echo " => Build complete: $@"
@echo " => Run 'make rpm' to build an rpm (or deb or tarball)"
build/include/insist.h: | build/include
curl -s -o $@ https://raw.github.com/jordansissel/experiments/master/c/better-assert/insist.h
......
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