错误信息
/usr/bin/ld: libavcodec/mqc.o: relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: libavcodec/mqcdec.o: relocation R_X86_64_32S against undefined symbol
ff_mqc_qe’ can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [libavcodec/libavcodec.so.58] Error 1
解决方法
配置时指定fPIC
./configure --extra-cxxflags='-fPIC' #其他选项