Commit 4505d238 authored by Simon McVittie's avatar Simon McVittie
Browse files

build: Don't run a test program, just link it

This is necessary when cross-compiling, at least on Debian 8 'jessie'.
Signed-off-by: Simon McVittie's avatarSimon McVittie <>
parent 75809d00
......@@ -59,7 +59,7 @@ PKG_CHECK_MODULES([LIBELF], [libelf >= 0.152], [have_libelf=yes], [
AC_CHECK_LIB([elf], [elf_begin], [],
[AC_MSG_ERROR([libelf not found])])
AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <libelf.h>],
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <libelf.h>],
[Elf_Cmd x = ELF_C_READ_MMAP;])],
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment