From 485d0a148f96d67b96aa318b4b23ffa2ac5184a1 Mon Sep 17 00:00:00 2001 From: w359405949 Date: Sat, 30 May 2015 09:45:20 +0800 Subject: Update Makefile fix link error while run "make hiredis-example-libuv": undefined reference to `clock_gettime' undefined reference to `clock_getres' --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3