Skip to content

Commit 90fd9e0

Browse files
committed
check-deps: Changed gelf func in __have_libelf.c
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]>
1 parent 9d88589 commit 90fd9e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

check-deps/__have_libelf.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33

44
int main(void)
55
{
6-
GElf_Ehdr ehdr;
6+
Elf *elf;
77

88
elf_version(EV_CURRENT);
9+
10+
/* check that the gelf function */
11+
elf = elf_begin(0, ELF_C_READ, (Elf *)0);
12+
gelf_checksum(elf);
13+
elf_end(elf);
14+
915
return 0;
1016
}

0 commit comments

Comments
 (0)