configure.ac : Pass -fno-inline-small-functions when using GCC 4.7
authorMario Sanchez Prada <mario@endlessm.com>
Mon, 8 Jun 2015 16:25:27 +0000 (17:25 +0100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 8 Jul 2015 12:20:52 +0000 (22:20 +1000)
commit5ff15bddeb1779d2e95a17a56a3aa04036fc7354
treef612fd6eecddf3b4f62e818f73e386535383bc1f
parent0cacc0c09f16e1733025bcbb53073140e59bae6c
configure.ac : Pass -fno-inline-small-functions when using GCC 4.7

For some reason, the build fails when using GCC 4.7 due to the implicit
-finline-functions option passed to the compiler when -O3 is enabled,
which does not happen in newer versions of GCC, probably due to some of
the "General Optimizer Improvements" included in 4.8 (see [1]).

Fortunately, we don't need to disable -finline-functions completely but
just do it for "small functions", which is what this patch does.

[1] https://gcc.gnu.org/gcc-4.8/changes.html

Closes: https://sourceforge.net/p/flac/bugs/429/
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
configure.ac