This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Correct use of "-flto"
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: John Frankish <j-frankish at slb dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Wed, 27 Mar 2013 10:01:56 +0000
- Subject: Re: Correct use of "-flto"
- References: <E1B828866A01174CB7A0393CF2309BCC3E35BA71 at NL0230MBX12N1 dot DIR dot slb dot com> <CAKOQZ8wYbrMc7JpaMQqf614UeGmD_DD=33f6jxz__5FH3sV+Qg at mail dot gmail dot com> <E1B828866A01174CB7A0393CF2309BCC3E35BCD0 at NL0230MBX12N1 dot DIR dot slb dot com>
On 27 March 2013 04:00, John Frankish wrote:
> Otherwise I'm going to have to compile with LTO for apps/so libs and again without LTO for static libs...
Why? If you do that you won't be able to optimize any code in the
static libs at link time.