iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

Remove libbcc dependency on llvm headers #5018

Closed chantra closed 4 months ago

chantra commented 4 months ago

This should fix the issue brought up in #4997 where llvm-devel was made a requirement for libbcc because of the presence of llvm-config.h include in bpf_module.h.

This changes moved the include inside bpf_module.cc so it does not leak outside of a build requirement.

rpm and deb specs were updated, but I was not able to test them.