一、 A Simple fix is changing ADD_LIBRARY(xx SHARED to ADD_LIBRARY(xx STATIC 二、 出错的模块:找到CFLAGS,在后面加上 -fPIC