Page MenuHome GnuPG

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

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

Details

Reviewers
None
Summary

From b98db631a3a17c8fbe6357d9c26f006bffe8937b 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 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

2.9.2

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped