I have compiled
rtmpdump from source (Linux) and when setting --enable-librtmp to compile ffmpeg, the make will barf on;
Code:
LD libavformat/libavformat.so.52
/usr/bin/ld: /usr/lib64/librtmp.a(rtmp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/librtmp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libavformat/libavformat.so.52] Error 1
So normally in this type of case I would add -fPIC to the CFLAGS. Then recompile the app, in this case rtmpdump, then recompile in this case ffmpeg and be on my merry way. However, adding -fPIC to the rtmpdump make process still causes the ffmpeg make to barf.
Any thoughts or pointers to resolve this?