diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-09-07 13:20:42 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2019-06-17 15:27:51 +0000 |
commit | 859eb2467dbc15728ea2ee15931073a4147f8d59 (patch) | |
tree | 51690373d376af68e646b38b39522ff1ba7a977e /examples/sql | |
parent | cbdc9a7786278c31fdb6eb465f32d0374349c1ef (diff) |
Add qmake config for controlling LTCG behavior for static libs
Static libraries may get installed and used by other builds, which may
be done with a different version or build of the compiler. So this
commit introduces two new flags:
- no-static-ltcg: disables LTCG completely for static libraries
- fat-static-lto: forces static libraries to produce fat LTO objects
fat-static-lto is useful for Linux distributions, since installed static
libraries should not carry LTO information, but that information is
useful during Qt's own build. This feature should be used alongside some
compiler-specific method of removing the LTO information from the
static libraries prior to installation, so only the regular part
remains.
For current GCC versions, this command suffices:
strip -R '.gnu.lto*' -R '.gnu.debuglto*' libname.a
Otherwise, distributions can use "no-static-ltcg" to disable it
completely.
Change-Id: I495bc19409f348069f5bfffd155237ade9f4b42f
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples/sql')
0 files changed, 0 insertions, 0 deletions