optimize and static link.