relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
libconfig.a: error adding symbols: Bad value
前提:
使用 configure.ac 生成的configure
在./configure 编译时, 添加编译选项,
./configure --prefix=${libdir} \
CFLAGS="$CXXFLAGS -fPIC" \
--enable-static=yes