package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
733 B

package("libelf")
set_homepage("https://web.archive.org/web/20181111033959/www.mr511.de/software/english.html")
set_description("ELF object file access library")
set_urls("https://dl.bintray.com/homebrew/mirror/libelf-$(version).tar.gz")
add_versions("0.8.13", "591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d")
on_install("linux", function (package)
local configs = {"--disable-debug",
"--disable-dependency-tracking",
"--disable-compat"}
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("elf_begin", {includes = "libelf/gelf.h"}))
end)