Skip to content

Commit eb88168

Browse files
hzhuang1anakryiko
authored andcommitted
fix missing blazesym head file
There're some updates in Makefile in commit 4b20731. But it's not synchronized into CMakeLists.txt. It causes the error in below. 77%] Building C object CMakeFiles/profile.dir/profile.c.o libbpf-bootstrap/examples/c/profile.c:17:10: fatal error: blazesym.h: No such file or directory 17 | #include "blazesym.h" | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/profile.dir/build.make:84: CMakeFiles/profile.dir/profile.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:520: CMakeFiles/profile.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
1 parent c86d5a8 commit eb88168

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/c/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if(CARGO_EXISTS)
4242
PREFIX blazesym
4343
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym
4444
CONFIGURE_COMMAND ""
45-
BUILD_COMMAND cargo build --release
45+
BUILD_COMMAND cargo build --package=blazesym-c --release
4646
BUILD_IN_SOURCE TRUE
4747
INSTALL_COMMAND ""
4848
STEP_TARGETS build
@@ -89,8 +89,8 @@ foreach(app ${apps})
8989
target_link_libraries(${app_stem} ${app_stem}_skel)
9090
if(${app_stem} STREQUAL profile)
9191
target_include_directories(${app_stem} PRIVATE
92-
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/include)
92+
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/capi/include)
9393
target_link_libraries(${app_stem}
94-
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/target/release/libblazesym.a -lpthread -lrt -ldl)
94+
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/target/release/libblazesym_c.a -lpthread -lrt -ldl)
9595
endif()
9696
endforeach()

0 commit comments

Comments
 (0)