Rewrite link time optimization in Makefile
authorMarco Costalba <mcostalba@gmail.com>
Sat, 12 Nov 2011 09:10:01 +0000 (10:10 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 12 Nov 2011 10:55:45 +0000 (11:55 +0100)
commitc4fc82c6b794c832bc9a4fc406cb4773d12c620b
treefa00013be6f4eb60c401c6edd70b094fe1c8a7e2
parenta40ded2884b512a84afe9af9ff5782f6634d316f
Rewrite link time optimization in Makefile

Instead of binding link time optimization to the choice of
popcount support, do the right thing and add -flto option
when gcc 4.5 or later is detected.

Although it should be supported also under mingw, it happens
that it doesn't, at least on my 4.6.1 due to some known bugs.

Thanks to Mike for helping me with this patch.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/Makefile