It works fine, you just ship the static libraries. With static linking your binaries won't have dependencies anyway.
That's not to say the static linking craze is a good thing. We'd be far better off finding a way to dynamically link templates, so you get the security benefits of automatically updated dependencies that dynamic linking gives you.