A common pattern is dynamic linking for development and static linking for production-ready releases.

We considered doing both, but it turned out that the GUI toolkit we use was really, really not designed to be statically linked, so we stopped trying.

Yes, that's a good way to do it.