How to make module.so static link glibc?


#1

I have export module.so in Ubuntu and want to deploy on Centos. The problem is that Ubuntu’s glibc version is higher than Centos’s. I know how to static link in normal C/C++ compiling. But how to control llvm in TVM?


#2

You can create a statically linked library using the llvm --system-lib target. Here’s an example of how to do that.