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 9c3c270
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 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);

/* 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 9c3c270

Please sign in to comment.