I have checked out the latest source of ffmpeg from the official website. I now want to compile and build ffmpeg as a position independent executable.
Here is what my configure command looks like
./configure --prefix=/usr/local --enable-gpl --enable-pic --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
I have added the option --enable-pic to make it a PIE. However when the build process completes successfully and when I do a hardening check as follows then I get below output
hardening-check ffmpeg
ffmpeg:
Position Independent Executable: no, normal executable!
Stack protected: yes
Fortify Source functions: yes (some protected functions found)
Read-only relocations: yes
Immediate binding: no, not found!
This tells me that ffmpeg is still not a PIE. Can anyone tell me what am I missing here? Is there any other changes that need to be done for adding PIE support.