summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw359405949 <w359405949@gmail.com>2015-05-30 09:45:20 +0800
committerw359405949 <w359405949@gmail.com>2015-05-30 09:45:20 +0800
commit485d0a148f96d67b96aa318b4b23ffa2ac5184a1 (patch)
tree32a65160a2258c33234eedf1e62b9201d7e39152
parentf58dd249d6ed47a7e835463c3b04722972281dbb (diff)
Update Makefile
fix link error while run "make hiredis-example-libuv": undefined reference to `clock_gettime' undefined reference to `clock_getres'
-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)