Skip to content

Commit

Permalink
check-deps: changed gelf function 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
(issue : gcc -Wall -Werror: libelf: [ OFF ] even when libelf-devel is installed)

Signed-off-by: Sojin Jang <[email protected]>
  • Loading branch information
JangSoJin committed Sep 3, 2024
1 parent 9d88589 commit 14e0262
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions 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);
return 0;
elf_version(EV_CURRENT);

/* check that the gelf function */
elf = elf_begin(0, ELF_C_READ, NULL);
gelf_checksum(elf);
elf_end(elf);

return 0;
}

0 comments on commit 14e0262

Please sign in to comment.