OpenCloudOS / nettrace

nettrace is a eBPF-based tool to trace network packet and diagnose network problem.
Other
326 stars 80 forks source link

Fix libzstd compilation dependency issues. #123

Closed yan-ace62 closed 1 month ago

yan-ace62 commented 1 month ago

Fix #122

menglongdong commented 1 month ago

这里有个问题,就是貌似libelf是从190开始依赖libzstd的,这样改的话会导致之前的版本以及docker镜像都需要安装libzstd才能正常编译。

这里咱们是不是可以做个判断,比如:

ifeq ("$(shell pkg-config --print-requires-private libelf | grep libzstd)","libzstd") HOST_FLAGS += -lzstd endif

menglongdong commented 1 month ago

LGTM, thanks~