aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-13 19:22:05 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-13 19:22:05 +0200
commit641aff5f571bc7da31e42a0ab32713749ff60c86 (patch)
tree17d8a9d375bdc10dfebcce0c95a5885129a7b9d7
parent809fd4ab7479a05261aa0a93f8cc7066bfef243d (diff)
downloadxK-641aff5f571bc7da31e42a0ab32713749ff60c86.tar.gz
xK-641aff5f571bc7da31e42a0ab32713749ff60c86.tar.xz
xK-641aff5f571bc7da31e42a0ab32713749ff60c86.zip
Link with -lrt
The newer glibc isn't that common yet.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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: