Marc-Andre Lemburg <m...@egenix.com> added the comment: Matthias Klose wrote: > > 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.
On some systems, this may very well break, due to configruations where LDFLAGS and CFLAGS contain the same options. While this is normally not much of a problem, some compilers may complain about this. E.g. GCC on Mac OS X complains about duplicate use of the -sysroot option. It's probably better to just pass OPT to the linker instead. ---------- nosy: +lemburg title: passing optimization flags to the linker required for builds with gcc -flto -> passing optimization flags to the linker required for builds with gcc -flto _______________________________________ 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