Commit 0d5084da authored by Joel Fernandes's avatar Joel Fernandes

clang: Make libclang_frontend depend on libbcc

libclang does use functions from libbcc so it does depend on it.
When defining new symbols in bpf_common.cc, linker errors appear
when the same symbols are used in libclang. This is because of
incorrect linker dependency, this patch fixes the issue by making
sure the dependency is correctly tracked.
Signed-off-by: default avatarJoel Fernandes <joelaf@google.com>
parent 44463d53
......@@ -10,3 +10,4 @@ if(DEFINED BCC_BACKUP_COMPILE)
endif()
add_library(clang_frontend STATIC loader.cc b_frontend_action.cc tp_frontend_action.cc kbuild_helper.cc ../../common.cc)
target_link_libraries(clang_frontend bcc-static)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment