create static lib for a c extension.