I really don't know how robust this is, but it works for me.  As far as I can tell, there is no equivalent to SONAME on darwin.