summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Erik Rediger <badboy@archlinux.us>2015-06-24 15:35:35 +0200
committerJan-Erik Rediger <badboy@archlinux.us>2015-06-24 15:35:35 +0200
commitb9cc0add2ca68f2d2b3be69d33b46056b1810a03 (patch)
tree32a65160a2258c33234eedf1e62b9201d7e39152
parentf58dd249d6ed47a7e835463c3b04722972281dbb (diff)
parent485d0a148f96d67b96aa318b4b23ffa2ac5184a1 (diff)
Merge pull request #333 from w359405949/w359405949-patch-1
undefined reference to `clock_gettime'
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8b0f0c2..70b0605 100644
--- a/Makefile
+++ b/Makefile
@@ -110,7 +110,7 @@ hiredis-example-libuv:
@false
else
hiredis-example-libuv: examples/example-libuv.c adapters/libuv.h $(STLIBNAME)
- $(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. -I$(LIBUV_DIR)/include $< $(LIBUV_DIR)/.libs/libuv.a -lpthread $(STLIBNAME)
+ $(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. -I$(LIBUV_DIR)/include $< $(LIBUV_DIR)/.libs/libuv.a -lpthread -lrt $(STLIBNAME)
endif
hiredis-example: examples/example.c $(STLIBNAME)