build basis profile with '-static' option