Varible static link during compile time

No problem. I once posted a link to a site I found reasonably good here (see embedded link in that post):