在编译makefile中增加make install节点即可: make file: 《tab》 cp xxx.so /系统目录/ ldconfig(重新编译缓存). 转载于:https://www.cnblogs.com/lzh900926/p/5652480.html