New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/pull/15310#issuecomment-601746547 Comment: I think it would be worth a try to go modular with qt5. That would mean build qt5-base native and later cross build qt5-base using the qmake build style and host tools. I'm not sure if we can have different build styles for native and cross builds in one package, though. It should be possible AFAICT. If it works this would avoid having to build the host tools on the fly when cross compiling and the big amount of patching required to also get the target arch tools built in the same go. In other words: us trying to keep the monolithic build approach is also causing much of our trouble. Once we'd have the native qt5-base (and qt5-qmake, qt5-host-tools etc.) all of the qt5 modules should then be built using the qmake build style and its generated `qt.conf` for the target, native or cross. The *only* thing required for this to work is the qmake build style producing good results for all cases.