Link with -lrt
The newer glibc isn't that common yet.
This commit is contained in:
parent
809fd4ab74
commit
641aff5f57
3
Makefile
3
Makefile
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user