Skip to content

Commit

Permalink
fix libelf
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored and anakryiko committed Jun 23, 2022
1 parent 2e37725 commit 2b5b2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/c/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ end
option("system-libbpf", {showmenu = true, default = false, description = "Use system-installed libbpf"})
option("require-bpftool", {showmenu = true, default = false, description = "Require bpftool package"})

add_requires("libelf", "zlib")
add_requires("elfutils", "zlib")
if is_plat("android") then
add_requires("ndk >=22.x", "argp-standalone")
set_toolchains("@ndk", {sdkver = "23"})
Expand Down Expand Up @@ -46,7 +46,7 @@ else
add_includedirs("../../libbpf/include/uapi", {public = true})
add_includedirs("$(buildir)", {interface = true})
add_configfiles("../../libbpf/src/(*.h)", {prefixdir = "bpf"})
add_packages("libelf", "zlib")
add_packages("elfutils", "zlib")
if is_plat("android") then
add_defines("__user=", "__force=", "__poll_t=uint32_t")
end
Expand Down

0 comments on commit 2b5b2bb

Please sign in to comment.