summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-23 21:29:55 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-23 21:30:29 +0200
commitadc82cc89b19c61c4f77a8b45e03733992fef665 (patch)
treec1abc593df289d5aece5c87dfd26623acec70d44 /Makefile
parentb86c6054450c1fe63164d4ce037de681f296bed5 (diff)
libpthread: link against `rt` for older glibc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b361fc8..ce0523e 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ wrapper.a: private override CFLAGS += -fvisibility=hidden
wrapper.a: src/wrapper/verbose.h src/wrapper/wrapper.c src/wrapper/wrapper.h
runtime/libpthread.so: private override CPPFLAGS += -D_GNU_SOURCE
-runtime/libpthread.so: private override LDLIBS += -lpthread
+runtime/libpthread.so: private override LDLIBS += -lpthread -lrt
runtime/libpthread.so: src/libpthread.c
runtime/libdl.so: private override CPPFLAGS += -D_GNU_SOURCE -DLINKER_DEBUG=1
runtime/libdl.so: private override CFLAGS += -Wno-pedantic -Wno-variadic-macros -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast