gcc ./configure时添加-fPIC

./configure --help #查看格式 查找C compiler flags

./configure CFLAGS=-fPIC CXXFLAGS=-fPIC