Rollup merge of #71456 - mzohreva:mz/sgx-no-dylib, r=nikomatsakis
Rollup merge of #71456 - mzohreva:mz/sgx-no-dylib, r=nikomatsakis

Use lib crate type for SGX in `fn build_auxiliary`

since SGX does not support `dylib`

cc @Goirad

aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust