Page MenuHome GnuPG

864_0001-configure.ac-restore-user-CFLAGS-before-checking-fun.patch
Needs ReviewPublic

Authored by ignatenkobrain on Jul 24 2016, 9:29 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

From 2248a4296a8cf80dd88db81430b5453298705904 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenko@redhat.com>
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 <ignatenko@redhat.com>

configure.ac | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

2.9.2

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped