llvm-link is a tool for linking (~ merging) LLVM IR files to another LLVM IR file.llvm-ldtrying to be compatible with ld. Note that LLVM does not currently have real binding capabilities, so it llvm-ldcalls gccto complete the actual final steps.
: GCC, clang:
clang -c file.c -fpic
clang -shared file.o -o file.so
-Wl clang, gcc:
clang -shared file.o -Wl,-soname,libfile.so.8 -o file.so