New submission from Matthias Klose <d...@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. ---------- components: Build files: make-lto.diff keywords: needs review, patch messages: 104217 nosy: doko severity: normal status: open 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 <rep...@bugs.python.org> <http://bugs.python.org/issue8535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com