How to link MinGW libraries statically while linking Qt dynamically?
===

**Brief**: I use MinGW, Qt, CMake. I need to link Qt libraties dynamicaly while linking MinGW libraries statically. 

**Detailed**: I use gcc option "-static". As i read in gcc man page this option prevents dynamic linking (meanwhile this option doen's affect libsndfile that links dynamically - how it is possible with "-static" option? Ok...). I have been told that by legal issues Qt does not allow to link it statically in closed-source application (but i don't change Qt's code), so i am interested in linking it dynamically (i have compiled 2 versions - static, dynamic - no problem with that). But i would like to link MinGW libraries statically while linking Qt dynamically (to reduce number of .DLL files coming with application).

**Q**: How to provide selective-statically linking?