After checking again I think the -bundle is supposed to replace the -shared for clang. Does that work for you?