How to recompile with -fPIC

Briefly, the error means that you can’t use a static library to be linked w/ a dynamic one.
The correct way is to have a libavcodec compiled into a .so instead of .a, so the other .so library you are trying to build will link well.

The shortest way to do so is to add --enable-shared at ./configure options. Or even you may try to disable shared (or static) libraries at all… you choose what is suitable for you!

Leave a Comment