Are there any method to add '-soname' to the compiler options?

Are there any method to add ‘-soname’ options to the compiler?

Thanks.