./configure -static -release -ltcg -optimize-size -no-pch -prefix "/path/to/qt/5.10.1-static" -skip webengine -nomake tools -nomake tests -nomake examples
Build (make) fails with the following error:
mac/qfontengine_coretext.mm:833:20: error: qualified reference to 'QFixed' is a constructor name rather than a type in this context
1 error generated.
make: *** [.obj/qfontengine_coretext.o] Error 1
make: *** [sub-fontdatabases-make_first] Error 2
make: *** [sub-platformsupport-make_first] Error 2
make: *** [sub-src-make_first] Error 2
make: *** [module-qtbase-make_first] Error 2
Weird thing that I had built Qt 5.10.0 statically before with no problems, but then after I installed Qt 5.10.1 I deleted that static build, and now after 5.10.1 static build failed, I get the same error trying to build 5.10.0 too.