diff options
author | w359405949 <w359405949@gmail.com> | 2015-05-30 09:45:20 +0800 |
---|---|---|
committer | w359405949 <w359405949@gmail.com> | 2015-05-30 09:45:20 +0800 |
commit | 485d0a148f96d67b96aa318b4b23ffa2ac5184a1 (patch) | |
tree | 32a65160a2258c33234eedf1e62b9201d7e39152 | |
parent | f58dd249d6ed47a7e835463c3b04722972281dbb (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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |