If that library contains native code only, you do it in exactly the same way
as for a native application. If it contains managed code then it is not
supported and will not generally work.
You cannot create a static library that contains managed code. Or to be more
exact, you can create one, but using it won't work. This is a (undesired)
side effect on how we currently do the mixing of managed and unmanaged code.