Add flag "--static-deps" to build Qt with static dependencies
Don't remove zlib static library if we build static dependencies. Fix braces.
Add "-static" to ldflags when building static dependencies to link statically to libwinpthread
Fix copying libraries when static building
Fix configuring openssl when static build
Add to Qt scripts ability to build static.
Build ruby as shared and without openssl extension because with static dependencies I have error
Fix  global flags for static linking
* Add patch for building static qmake
* Extend patch for mkspec
* Fix Qt scripts to support static build
* Skip many dependencies when do static build Qt. Static build is without Webkit
* Different Qt configure options for static and shared build
Fix Qt4 static building
* Move Qt4 configure flags to variable.
* Fix options for static and shared build.
Static Qt5 build now only with "-opengl desktop"
Rename build option "--static-deps" to "--static-qt"
When static build use "-opengl desktop" for Qt5
Don't build sql drivers for static Qt.
Fix condition variable
When static build configure Qt with internal zlib
Fix flags for linking.
Merge branch 'static_deps' into develop.
Now it possible to build static Qt.