http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #58 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-03-09 21:45:10 UTC --- > How do you do this with "make -f client.mk profiledbuild"? To answer my own question: Just edit ./configure and ./js/src/configure and add "-flto=4 -fwhole-program" (or whatever you may prefer) to the PROFILE_USE_CFLAGS variable. Then you can build Firefox with "make -f client.mk profiledbuild". BTW libmozsqlite3.so still gets miscompiled, but Firefox is now snappy as never before ;-)