I just tried to compile ffmpeg with the rtmp flag on (with media-video/rtmpdump-2.2e-r2). The compile failed (I'll attach the build log) I then add : if [[ "${CATEGORY}/${PN}" == "media-video/rtmpdump" ]] ; then CFLAGS="${CFLAGS} -fPIC" fi to my /etc/paludis/bashrc, and I recompiled rtmpdump, then I retried to compile ffmpeg, it all went just fine. Reproducible: Always Steps to Reproduce: 1. try to compile ffmpeg[rtmp] 2. see the failure 3. add -fPIC to FLAGS and recompile rtmpdump 4. it works Actual Results: compile failure Expected Results: it works out of the box
Created attachment 235793 [details] build log
Created attachment 235795 [details] patch to fix the ebuild
Actually, the OPT var passed to make (I don't think I'm wrong if I say that it's the user CFLAGS) override the one from the Makefile, so -fPIC is never applied (it isn't shown in the compile line), so I renamed it to OPTS and added OPT back to keep the user configuration (cf patch) and now it works without adding -fPIC to CFLAGS by myself
Fixed to -r3. Old ebuilds removed Thanks for the patch