I think it is enough to add "CONFIG+=static" to your project file (not sure about it though, if not, you have to provide some switch for your compiler).