diff options
author | David CARLIER <devnexen@gmail.com> | 2020-09-23 08:00:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 10:00:31 +0300 |
commit | c3edaa79413bdf908abb56f088217c01f347ecff (patch) | |
tree | b581cd093806c71860167bb5479409a96bc578cc /src/Makefile | |
parent | 63cd4d4e2044059c44a65e2ce424b9ce1fcdbd39 (diff) | |
download | redis-c3edaa79413bdf908abb56f088217c01f347ecff.tar.gz |
Further NetBSD update and build fixes. (#7831)
mainly backtrace and register dump support.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 715316a15..f6e5f3e3f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -131,12 +131,21 @@ ifeq ($(uname_S),OpenBSD) endif else +ifeq ($(uname_S),NetBSD) + # NetBSD + FINAL_LIBS+= -lpthread + ifeq ($(USE_BACKTRACE),yes) + FINAL_CFLAGS+= -DUSE_BACKTRACE -I/usr/pkg/include + FINAL_LDFLAGS+= -L/usr/pkg/lib + FINAL_LIBS+= -lexecinfo + endif +else ifeq ($(uname_S),FreeBSD) # FreeBSD FINAL_LIBS+= -lpthread -lexecinfo else ifeq ($(uname_S),DragonFly) - # FreeBSD + # DragonFly FINAL_LIBS+= -lpthread -lexecinfo else ifeq ($(uname_S),OpenBSD) @@ -158,6 +167,7 @@ endif endif endif endif +endif # Include paths to dependencies FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -I../deps/hdr_histogram |