Make share staic library automatically