Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#61381 - [qt]Consider building Qt with LTCG
Attached to Project:
Arch Linux
Opened by Mark (markg85) - Sunday, 13 January 2019, 15:08 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 10 December 2019, 18:32 GMT
Opened by Mark (markg85) - Sunday, 13 January 2019, 15:08 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 10 December 2019, 18:32 GMT
|
DetailsHi,
This article: http://blog.qt.io/blog/2019/01/02/qt-applications-lto/ triggered me into making this feature request. It should give substantial package size decreases and performance improvements. How much both wins are is unclear for dynamic builds. Just that there are wins. All packages that rely on Qt do likely have to be rebuild for this though. It might be too much effort for too little gain. It would be nice to have it, but not a necessity. Cheers, Mark |
This task depends upon
Closed by Antonio Rojas (arojas)
Tuesday, 10 December 2019, 18:32 GMT
Reason for closing: Won't implement
Tuesday, 10 December 2019, 18:32 GMT
Reason for closing: Won't implement
If added to the Qt packet in the distribution it gets freely applied to everything you folks compile that depends on Qt.
If i do it locally when compiling an application it's only for me and only for that one application.
As for the C(XX)FLAGS, i'm not sure what Qt would do if that is in the flags, but "-ltcg" is not provided in the Qt configure.
Sorry, i should have mentioned this. The Qt configure needs "-ltcg" and "-reduce-relocations". The later is there already [1], the former still misses.
[1] https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/qt5-base
> If added to the Qt packet in the distribution it gets freely applied to everything you folks compile that depends on Qt.
> If i do it locally when compiling an application it's only for me and only for that one application.
Right, and when using it in CXXFLAGS this applies to all applications whether they happen to use qmake or not. So again, what does this option do that could not be duplicated on a more generic level?
It's a configure thin on the Qt side, it might not be set if -ltcg is provided or might not even work if it is provided in CXXFLAGS but isn't in configure.
Then again, i could be totally wrong and it could magically work just fine.
You'd have to test if that works :)
But lets not go back and forth more then we already have done. Putting it in CXXFLAGS would seem adventurous for arch maintainers. Please consider patching up the Qt PKGBUILD file with -ltcg or close this issue if the maintainer has no interest in doing so.