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 : #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 fd2d85b
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 fd2d85b

Please sign in to comment.