Skip to content

Commit

Permalink
check-deps: Changed gelf func in __have_libelf.c
Browse files Browse the repository at this point in the history
Even though 'libelf-devel' is installed,
'libelf' is displayed as [OFF] rather than [ON]
when running ./configure.

Fixed : namhyung#1869

Signed-off-by: SoJin Jang <[email protected]>
  • Loading branch information
JangSoJin committed Sep 3, 2024
1 parent 9d88589 commit 90fd9e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion check-deps/__have_libelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 90fd9e0

Please sign in to comment.