Refine the approach to generate static libraries.