From 641aff5f571bc7da31e42a0ab32713749ff60c86 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Wed, 13 Aug 2014 19:22:05 +0200 Subject: Link with -lrt The newer glibc isn't that common yet. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34acd79..17e20e2 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ CC = clang CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function \ -ggdb -fsanitize=address,undefined # -lpthread is only there for debugging (gdb & errno) -LDFLAGS = `pkg-config --libs libssl` -lpthread +# -lrt is only for glibc < 2.17 +LDFLAGS = `pkg-config --libs libssl` -lpthread -lrt .PHONY: all clean .SUFFIXES: -- cgit v1.2.3-70-g09d2