diff --git a/check-deps/__have_libelf.c b/check-deps/__have_libelf.c index bf7a9ec80..64e226cc3 100644 --- a/check-deps/__have_libelf.c +++ b/check-deps/__have_libelf.c @@ -3,8 +3,14 @@ int main(void) { - GElf_Ehdr ehdr; - + Elf *elf; + elf_version(EV_CURRENT); + + /* check that the gelf function */ + elf = elf_begin(0, ELF_C_READ, (Elf *)0); + gelf_checksum(elf); + elf_end(elf); + return 0; }