Add and use check_lto_shared_available