Link with -lrt

The newer glibc isn't that common yet.
This commit is contained in:
Přemysl Eric Janouch 2014-08-13 19:22:05 +02:00
parent 809fd4ab74
commit 641aff5f57
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ CC = clang
CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function \ CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function \
-ggdb -fsanitize=address,undefined -ggdb -fsanitize=address,undefined
# -lpthread is only there for debugging (gdb & errno) # -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 .PHONY: all clean
.SUFFIXES: .SUFFIXES: