GNOME Bugzilla – Bug 741140
[PATCH] build: add --enable-lto to enable Link Time Optimization
Last modified: 2015-01-12 15:51:03 UTC
Created attachment 292163 [details] 0001-build-add-enable-lto-to-enable-Link-Time-Optimizatio.patch Takes about 3x as long to build with gcc 4.8, but gcc 4.9 is supposed to speed that up considerably. Name Before After Saved ------------------------------------- NetworkManager 1734744 1689728 3% libnm 1263536 808816 36% nm-iface-helper 931136 906496 3% libnm-util 441264 437168 1% libnm-glib 297064 292960 2% I re-tested the libnm stats twice, I really don't know why it saves so much.
Looks good. Compiles with clang (on F20), but linking fails.
(In reply to comment #1) > Looks good. > > Compiles with clang (on F20), but linking fails. Yeah, which is why I made it an option :) Plus GCC < 4.8 shouldn't use it either.
pushed as 67bf5cb1a34c7dcb4081254a859bf82421be1d48