From 2248a4296a8cf80dd88db81430b5453298705904 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 | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)