1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 04:05:40 +03:00
aports/community/bpftrace/10-link-libbpf.patch
2022-05-29 01:15:20 +00:00

12 lines
434 B
Diff

Explicitly link runtime against libbpf to fix "DSO missing from command line" error
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -163,6 +163,7 @@ if(STATIC_LINKING)
set_property(TARGET LIBELF PROPERTY IMPORTED_LOCATION ${LIBELF_LIBRARIES})
target_link_libraries(runtime LIBELF)
else()
+ target_link_libraries(runtime ${LIBBPF_LIBRARIES})
target_link_libraries(runtime ${LIBELF_LIBRARIES})
endif(STATIC_LINKING)