On 2024/2/29 17:43, Gao Xiang wrote:
Hi Yifan,

On 2024/2/29 00:16, Yifan Zhao wrote:
Add a workqueue implementation for multi-threading support inspired by
xfsprogs.

Signed-off-by: Yifan Zhao <zhaoyi...@sjtu.edu.cn>
Suggested-by: Gao Xiang <hsiang...@linux.alibaba.com>
---

..

index 54b9c9c..7307f7b 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -53,3 +53,7 @@ liberofs_la_SOURCES += kite_deflate.c compressor_deflate.c
  if ENABLE_LIBDEFLATE
  liberofs_la_SOURCES += compressor_libdeflate.c
  endif
+if ENABLE_EROFS_MT
+liberofs_la_CFLAGS += -lpthread

By the way, this line should be
liberofs_la_LDFLAGS = -lpthread

Otherwise, it can fail on the clang side.

Thanks,
Gao Xiang

Reply via email to