我正在尝试配置 ffmpeg 源包来构建 .so 文件而不是 .a 文件。
我跑make了./configure --enable-shared
这给了我以下消息:
/usr/bin/ld: libavutil/display.o: relocation R_X86_64_PC32 against undefined symbol 'hypot@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
但是,我不确定在哪里以及如何添加 -fPIC 标志。