[Development] Qt Static Package

Mitch Curtis mitch.curtis at qt.io
Mon Apr 29 17:53:41 CEST 2019


> -----Original Message-----
> From: Development <development-bounces at qt-project.org> On Behalf Of
> Mitch Curtis
> Sent: Monday, 29 April 2019 5:45 PM
> To: Thiago Macieira <thiago.macieira at intel.com>; development at qt-
> project.org
> Subject: Re: [Development] Qt Static Package
> 
> > -----Original Message-----
> > From: Development <development-bounces at qt-project.org> On Behalf
> Of
> > Thiago Macieira
> > Sent: Monday, 29 April 2019 5:18 PM
> > To: development at qt-project.org
> > Subject: Re: [Development] Qt Static Package
> >
> > On Monday, 29 April 2019 00:27:14 PDT Mitch Curtis wrote:
> > > -static -release -ltcg -opensource -confirm-license -nomake tests
> > > -nomake examples -silent
> >
> > -static -ltcg is most definitely not redistributable. That build is
> > only usable in your exact machine, and only for so long as you don't
> > perform a system update.
> 
> That's a pity. It shaved off 8 mb (19%) of my executable's size.
> 
> Can you explain why it's not redistributable? I thought the whole point of link
> time code generation was for release builds?

Everywhere I read online says that it's for release builds. https://blog.qt.io/blog/2019/01/02/qt-applications-lto/ (where I got the idea to use -ltcg) says:

"But, this optimization is definitely something that fits well into the release process, when creating your final build. So, your Release Manager can use it."

> > --
> > Thiago Macieira - thiago.macieira (AT) intel.com
> >   Software Architect - Intel System Software Products
> >
> >
> >
> > _______________________________________________
> > Development mailing list
> > Development at qt-project.org
> > https://lists.qt-project.org/listinfo/development
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development


More information about the Development mailing list