Builds shared and static versions simultaneously