summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-05-25 20:16:57 +0800
committerzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-05-25 20:16:57 +0800
commit2711f053f2b2511fd322ff1ac065f0367a182a40 (patch)
treea23b4fc57cc9ea6db2bd8dda8adef91ee993011d /src/Makefile
parente4f5c0493008a007ad65bd17b1746f24f1106685 (diff)
downloadredis-2711f053f2b2511fd322ff1ac065f0367a182a40.tar.gz
append -lrt to FINAL_LIBS for linux
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 847d73792..8cd7afe5e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -100,7 +100,7 @@ ifeq ($(uname_S),FreeBSD)
else
# All the other OSes (notably Linux)
FINAL_LDFLAGS+= -rdynamic
- FINAL_LIBS+=-ldl -pthread
+ FINAL_LIBS+=-ldl -pthread -lrt
endif
endif
endif