Skip to content

Commit 537677c

Browse files
weipengdanielocfb
authored andcommitted
examples/c: Fix compile issus with -j20.
More than one building task of the libbpf and bpftool will be created with -j20. For the libbpf, several same install step running at the same time will cause the compiling error. See the issus: #354 To solve this, change the dependencies of the external project "xxx" from "xxx-build" to "xxx". Signed-off-by: weipeng <[email protected]>
1 parent 7cab3cd commit 537677c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ foreach(app ${apps})
8383

8484
# Build object skeleton and depend skeleton on libbpf build
8585
bpf_object(${app_stem} ${app_stem}.bpf.c)
86-
add_dependencies(${app_stem}_skel libbpf-build bpftool-build)
86+
add_dependencies(${app_stem}_skel libbpf bpftool)
8787

8888
add_executable(${app_stem} ${app_stem}.c)
8989
target_link_libraries(${app_stem} ${app_stem}_skel)

0 commit comments

Comments
 (0)