From b98db631a3a17c8fbe6357d9c26f006bffe8937b Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <firstname.lastname@example.org>
Date: Sun, 24 Jul 2016 21:10:58 +0200
Subject: [PATCH] configure.ac: restore user CFLAGS before checking functions
AC_CHECK_FUNCS([mmap]) on Fedora fails to find mmap() due to missing -fPIC.
/usr/bin/ld: /tmp/ccvNyAcN.o: relocation R_X86_64_PC32 against undefined symbol `mmap@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
We have -fPIC somewhere in default CFLAGS, so just resotre user CFLAGS
before making checks for functions.
Signed-off-by: Igor Gnatenko <email@example.com>
configure.ac | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)