build: Improve CFLAGS handling.
authorJustus Winter <justus@g10code.com>
Tue, 7 Mar 2017 14:20:19 +0000 (15:20 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 7 Mar 2017 14:20:19 +0000 (15:20 +0100)
commit4b57359ef3ce0b87e15889e12ef0fcd23f62dcb4
treed48ae920179c681ff1d61b7127868611337b9311
parentc22a2a89d3bd3d08b3abb8e4e33df32b480338ec
build: Improve CFLAGS handling.

* configure.ac: Strip any flags matching '-Werror' from CFLAGS before
running the tests, and add them back later on.
--
Previously, the tests were run with empty CFLAGS.  This caused
problems, e.g. on Fedora mmap was not detected due to some missing
CFLAGS while running the tests.

GnuPG-bug-id: 2423
Fixes-commit: 02eb9fc9d5863abcfed6af704e618f8cac7cc2e8
Signed-off-by: Justus Winter <justus@g10code.com>
configure.ac