File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed
ci/ubuntu-24.04-noble/debian Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change
1
+ find_path (BPF_INCLUDE_DIR bpf/bpf.h )
2
+ find_library (BPF_LIBRARY NAMES bpf )
3
+
4
+ include (FindPackageHandleStandardArgs )
5
+ find_package_handle_standard_args (BPF DEFAULT_MSG BPF_LIBRARY BPF_INCLUDE_DIR )
6
+
7
+ if (BPF_FOUND )
8
+ set (BPF_LIBRARIES ${BPF_LIBRARY} )
9
+ set (BPF_INCLUDE_DIRS ${BPF_INCLUDE_DIR} )
10
+ else ()
11
+ set (BPF_LIBRARIES )
12
+ set (BPF_INCLUDE_DIRS )
13
+ endif ()
14
+
15
+ mark_as_advanced (BPF_LIBRARIES BPF_INCLUDE_DIRS )
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ include_directories(${LIBEVENT_INCLUDE_DIR})
44
44
set (CMAKE_REQUIRED_LIBRARIES "${LIBEVENT_LIB} " )
45
45
CHECK_FUNCTION_EXISTS ("evhttp_bind_socket_with_fd" HAVE_CUSTOM_LIBEVENT )
46
46
if (HAVE_CUSTOM_LIBEVENT )
47
- message ("Using custom LIBEVENT" )
48
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_CUSTOM_LIBEVENT" )
47
+ message ("Using custom LIBEVENT" )
48
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_CUSTOM_LIBEVENT" )
49
49
endif ()
50
50
set (CMAKE_REQUIRED_LIBRARIES )
51
51
@@ -280,6 +280,7 @@ endif()
280
280
281
281
if (LINUX )
282
282
find_package (LibUnwind REQUIRED )
283
+ find_package (Bpf REQUIRED )
283
284
endif ()
284
285
285
286
# This is required by Homebrew's libc. See
@@ -344,7 +345,7 @@ macro(hphp_link target)
344
345
target_link_libraries (${target} ${VISIBILITY} glog )
345
346
346
347
if (LINUX )
347
- target_link_libraries (${target} ${VISIBILITY} ${LIBUNWIND_LIBRARIES} )
348
+ target_link_libraries (${target} ${VISIBILITY} ${LIBUNWIND_LIBRARIES} ${BPF_LIBRARIES} )
348
349
endif ()
349
350
350
351
if (LIBINOTIFY_LIBRARY )
@@ -453,9 +454,9 @@ macro(hphp_link target)
453
454
454
455
if (ENABLE_XED )
455
456
if (LibXed_FOUND )
456
- target_link_libraries (${target} ${VISIBILITY} ${LibXed_LIBRARY} )
457
+ target_link_libraries (${target} ${VISIBILITY} ${LibXed_LIBRARY} )
457
458
else ()
458
- target_link_libraries (${target} ${VISIBILITY} xed )
459
+ target_link_libraries (${target} ${VISIBILITY} xed )
459
460
endif ()
460
461
endif ()
461
462
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Build-Depends:
19
19
git,
20
20
gperf,
21
21
libboost-all-dev,
22
+ libbpf-dev,
22
23
libbz2-dev,
23
24
libc-client-dev,
24
25
libc-client2007e-dev,
You can’t perform that action at this time.
0 commit comments