Skip to content

Commit

Permalink
[PATCH] Makefile: Fix a compile error on Debian with pthread
Browse files Browse the repository at this point in the history
On Debian 10, "make" reports errors about undefined reference to
`pthread_rwlock_tryrdlock'. To fix it, put -ldw before -lpthread
in the Makefile.

Signed-off-by: Jiang Wang <jiang.wang@bytedance.com>
  • Loading branch information
Jiang Wang authored and k-hagio committed Feb 1, 2021
1 parent 6f3e75a commit 01b4bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -68,7 +68,7 @@ endif
CFLAGS += -DUSESNAPPY
endif

LIBS := -lpthread $(LIBS)
LIBS := $(LIBS) -lpthread

try-run = $(shell set -e; \
TMP=".$$$$.tmp"; \
Expand Down

0 comments on commit 01b4bd3

Please sign in to comment.