[issue8535] passing optimization flags to the linker required for builds with gcc -flto
report at bugs.python.org
Mon Apr 26 13:00:43 CEST 2010
New submission from Matthias Klose <doko at debian.org>:
Building with -flto (GCC 4.5.0) requires passing the very same optimization flags to the linker (lto1) as well. The attached patch just does this. Tested on Linux only, I don't know what will/could break on on other systems/compilers.
Tested with a static build (--disable-shared) on x86_64. pybench results improve by 5% when building with 4.5.0 instead of 4.4.3, and by another 5% by building with -flto.
keywords: needs review, patch
title: passing optimization flags to the linker required for builds with gcc -flto
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file17091/make-lto.diff
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list