From a58676c9e10d4d90fe2c9b949cfef4c1b1436bc7 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 6 Oct 2011 20:34:01 +0200 Subject: [PATCH] Linux needs -lrt for clock_gettime. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 2cd6a18c0e..a6f592520a 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,10 @@ ifneq ($(findstring BSD,$(OS)),) DYLIB_LIB = -lc endif +ifneq ($(findstring Linux,$(OS)),) + LIBS += -lrt +endif + ifeq ($(HAVE_SRC), 1) LIBS += $(SRC_LIBS) DEFINES += $(SRC_CFLAGS)